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: Fix '-Wunused-parameter' compiler warnings #2770

Merged
merged 7 commits into from
Feb 12, 2023

Conversation

nilason
Copy link
Contributor

@nilason nilason commented Jan 22, 2023

The absolute majority of the "-Wunused-parameter" warnings are addressed by adding __attribute__((unused)) in the form of a macro, defined as following:

#define UNUSED __attribute__((unused))

In this sense, this PR is a trivial fix, in spite of the high number of affected files.

Fixes partly #2747

@nilason nilason added enhancement New feature or request C Related code is in C C++ Related code is in C++ labels Jan 22, 2023
@nilason nilason added this to the 8.3.0 milestone Jan 22, 2023
@nilason nilason mentioned this pull request Jan 22, 2023
12 tasks
@nilason
Copy link
Contributor Author

nilason commented Feb 8, 2023

If there are no objections, I'll merge this in a few days.

(CC @metzm )

@nilason nilason merged commit 7d6ff54 into OSGeo:main Feb 12, 2023
@nilason nilason deleted the 10_fix_Wunused-parameter branch February 12, 2023 14:52
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
The absolute majority of the "-Wunused-parameter" compiler warnings are addressed by adding
__attribute__((unused)) with the macro 'UNUSED'.
@neteler neteler changed the title Fix '-Wunused-parameter' compiler warnings checks: Fix '-Wunused-parameter' compiler warnings Jun 6, 2023
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
The absolute majority of the "-Wunused-parameter" compiler warnings are addressed by adding
__attribute__((unused)) with the macro 'UNUSED'.
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++ enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant