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

lib: fix missing prototypes #4191

Merged
merged 4 commits into from
Aug 23, 2024
Merged

lib: fix missing prototypes #4191

merged 4 commits into from
Aug 23, 2024

Conversation

nilason
Copy link
Contributor

@nilason nilason commented Aug 16, 2024

Address -Wstrict-prototypes warnings and make CI macOS runner fail in new cases.

@nilason nilason added this to the 8.5.0 milestone Aug 16, 2024
@github-actions github-actions bot added CI Continuous integration raster Related to raster data processing C Related code is in C database Related to database management libraries module labels Aug 16, 2024
@nilason nilason force-pushed the fix_strict_prototype branch from df4bb2d to dfd2910 Compare August 18, 2024 18:39
@echoix
Copy link
Member

echoix commented Aug 22, 2024

Were the changes in the PR ready on their own? I just found multiple of these when looking at the failing macOS run in #4213, that would be fixed by this PR.

@nilason
Copy link
Contributor Author

nilason commented Aug 23, 2024

Opening this for review. Proper fix for the BLAS/LAPACK is less than trivial, and I'm looking into that. Meanwhile a compiler suppression should suffice, preventing new cases like what happened recently with r.report.

Were the changes in the PR ready on their own? I just found multiple of these when looking at the failing macOS run in #4213, that would be fixed by this PR.

This addresses those warnings and new warnings will cause failure.

@nilason nilason marked this pull request as ready for review August 23, 2024 12:25
Copy link
Member

@wenzeslaus wenzeslaus left a comment

Choose a reason for hiding this comment

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

That certainly makes sense! Thanks.

@echoix echoix merged commit b794d95 into OSGeo:main Aug 23, 2024
28 checks passed
@nilason nilason deleted the fix_strict_prototype branch September 11, 2024 07:45
Mahesh1998 pushed a commit to Mahesh1998/grass that referenced this pull request Sep 19, 2024
* r.report: add missing prototype

* lib/db: add missing prototype

* CI: fail macOS runner on -Wstrict-prototypes

* lib/gmath: suppress -Wstrict-prototypes for BLAS/LAPACK wrapper header
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 CI Continuous integration database Related to database management libraries module raster Related to raster data processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants