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

Fix up warnings when building with clang. #1070

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

clalancette
Copy link
Contributor

It turns out that clang defines GNUC, but doesn't understand all of the flags that GCC does. Thus, make the pushing and popping of flags conditional on GCC only.

While we are in here, remove some bits of workarounds that are no longer necessary.

It turns out that clang defines __GNUC__, but doesn't
understand all of the flags that GCC does.  Thus, make
the pushing and popping of flags conditional on GCC only.

While we are in here, remove some bits of workarounds that
are no longer necessary.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
@clalancette
Copy link
Contributor Author

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@clalancette
Copy link
Contributor Author

Clang build:

  • Clang Build Status

@clalancette clalancette merged commit 35326f0 into rolling Oct 5, 2023
2 checks passed
@delete-merged-branch delete-merged-branch bot deleted the clalancette/fix-clang-warning branch October 5, 2023 20:36
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.

None yet

2 participants