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

checks: add -Wpendantic compiler flag to CI builds #3245

Merged
merged 5 commits into from
Nov 28, 2023
Merged

Conversation

nilason
Copy link
Contributor

@nilason nilason commented Nov 18, 2023

Enable -Wpedantic (in combination with -Werror) compiler flag in the GCC and macOS CI builds.
This supersedes #2899, which was too invasive on the GRASS code. This solution , using -isystem/path/to/gdal/includes, avoids the compiler issuing warnings for files located there by treating them as system files. This will be quite enough for our purposes.

In addition to changes to CI, silencing of compiler warnings (caused by duplicated GDAL code and thus not "fixable") in include/grass/vect/dig_defines.h is made using compiler #pragma statements.

- Silence compiler warnings in include/grass/vect/dig_defines.h using
compiler #pragma statements.
@nilason nilason added CI Continuous integration C Related code is in C labels Nov 18, 2023
@nilason nilason added this to the 8.4.0 milestone Nov 18, 2023
@nilason nilason changed the title check: add -Wpendantic compiler flag to CI builds checks: add -Wpendantic compiler flag to CI builds Nov 18, 2023
@nilason
Copy link
Contributor Author

nilason commented Nov 18, 2023

Ahgrr, in a fork-rename-and-delete-then-rewording-of-commit operation, I ended up wrongfully pushing this to OSGeo repo. I'm so sorry!

@nilason nilason self-assigned this Nov 22, 2023
@nilason nilason added the C++ Related code is in C++ label Nov 22, 2023
@nilason nilason requested a review from landam November 22, 2023 14:15
@nilason
Copy link
Contributor Author

nilason commented Nov 27, 2023

If there are no objections, I will take the liberty to merge this.

@nilason nilason merged commit db57391 into main Nov 28, 2023
24 checks passed
@nilason
Copy link
Contributor Author

nilason commented Nov 28, 2023

@neteler or someone else with access, please delete this branch fix_external_warnings from the OSGeo/grass repo.

@nilason nilason deleted the fix_external_warnings branch November 28, 2023 15:59
HuidaeCho pushed a commit to HuidaeCho/grass that referenced this pull request Jan 9, 2024
Also silence compiler warnings in include/grass/vect/dig_defines.h, caused by
code copied from GDAL, using compiler #pragma statements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Related code is in C C++ Related code is in C++ CI Continuous integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant