Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added c89 build test to CI #3435

Merged
merged 1 commit into from
Jan 20, 2023
Merged

added c89 build test to CI #3435

merged 1 commit into from
Jan 20, 2023

Conversation

Cyan4973
Copy link
Contributor

@Cyan4973 Cyan4973 commented Jan 18, 2023

This test ensures that libzstd and the zstd CLI can be compiled with c89/c90 compilers,
with the additional requirement of long long type and variadic macros support.

Fixed a few -pedantic warnings that appeared in the process.

The test initially attempted to compile tests/ tools with the same requirement,
but this is a strong requirement, which makes the code more difficult to write at times,
so it feels only appropriate to accept this restriction for libzstd and the zstd CLI proper.

@Cyan4973
Copy link
Contributor Author

Cyan4973 commented Jan 19, 2023

decodecorpus.c uses snprintf(), which is c99, and is therefore not available when compiled in strict c90 mode.

Reducing the strict iso c90 requirement to libzstd and zstd CLI only.

@Cyan4973 Cyan4973 force-pushed the c89build branch 3 times, most recently from 93078f1 to a079d48 Compare January 19, 2023 02:17
@terrelln
Copy link
Contributor

Needs to be rebased

@Cyan4973
Copy link
Contributor Author

Needs to be rebased

done

@Cyan4973
Copy link
Contributor Author

only version-compatibility test is failing now

@Cyan4973 Cyan4973 merged commit 6742f20 into dev Jan 20, 2023
@Cyan4973 Cyan4973 deleted the c89build branch January 26, 2023 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants