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

ogr_core.h: suppress warning when building with -Wpedantic for C < 23 #11133

Merged
merged 1 commit into from
Oct 26, 2024

Conversation

rouault
Copy link
Member

@rouault rouault commented Oct 26, 2024

Fixes #2322

@nilason
Copy link
Contributor

nilason commented Oct 26, 2024

Great, maybe you can consider suppressing for Clang too:

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpedantic"
...
#pragma clang diagnostic pop

@rouault
Copy link
Member Author

rouault commented Oct 26, 2024

Great, maybe you can consider suppressing for Clang too:

I've just verified that this PR also suppresses the warning with clang (since clang declares to be GCC too)

@rouault rouault merged commit f05ae5c into OSGeo:master Oct 26, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release/3.10 Backport to release/3.10 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OGRwkbGeometryType using non ISO C compliant values
2 participants