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

Makefile: Use -Wall for compiling tests #210

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

evanj
Copy link
Contributor

@evanj evanj commented Sep 30, 2023

CFLAGS uses -Wall along with some -Wno-* options. However, tests are compiled using TEST_CFLAGS, so they did not use these options. Compile tests with -Wall. This also reorders the TEST_CFLAGS options to match the CFLAGS options above for easier comparison.

test/concurrency: Fix unused arg warning from -Wall. Sort includes.

Feel free to reject this pull request since it doesnt really change anything. I just noticed it while making another change to the tests.

CFLAGS uses -Wall along with some -Wno-* options. However, tests
are compiled using TEST_CFLAGS, so they did not use these options.
Compile tests with -Wall. This also reorders the TEST_CFLAGS options
to match the CFLAGS options above for easier comparison.

test/concurrency: Fix unused arg warning from -Wall. Sort includes.
Copy link
Member

@lfittl lfittl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Seems reasonable, thanks for the contribution!

Note that we intentionally don't check for some warnings for the main library code (since Postgres itself isn't warning free), but the compilation flags for those units uses CFLAGS, not TEST_CFLAGS, so we are good in that regard.

@lfittl lfittl merged commit 915b3e1 into pganalyze:15-latest Oct 3, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants