Closed masatake closed 6 months ago
Why do you want to remove the compiler option -Wno-unused-parameter? I think unused parameters are harmless if they are intendedly left to make functions in the same category have the same signature.
As a developer of Universal ctags that uses code generated by packcc, removing unused local variables from the the generated code is enough.
For my purpose, I defined MARKED_VAR_AS_USED. After adding it I found I could use the macro to suppress the warning related to -Wunused-parameter.
I will withdraw this pull request and open a new one specialized in eliminating unused local variables.
Why do you want to remove the compiler option
-Wno-unused-parameter
? I think unused parameters are harmless if they are intendedly left to make functions in the same category have the same signature.