-
Notifications
You must be signed in to change notification settings - Fork 5
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
unused-parameter compiler warnings #94
Comments
Hi, |
Oh yes, good point. Update: www.cern.ch/tuna/log_2021_11_19_15h11m30s.txt
|
So, please tell me what is your idea of dealing with them? |
I'd suggest removing the variable name from the function definition/declaration, and not changing the function signature. That's how the internet has taught me to deal with compiler warnings when I don't actually want to change the contents of the function or change how people call the function. (I assume this is your perspective too: no changes) Then there are two approaches to removing the variable name: the more verbose way and the less verbose way. If I take this one as example:
The original:
The more verbose approach (keeps the unused variable name around):
The less verbose approach (doesn't keep the unused variable name):
The effect is the same for both |
Hang tight, we're processing your request. In the meantime Ben proposed to propose yet another way of using some macro. |
Hi @alexandertuna , we discussed this internally and upon @ben-farnham proposal we'd prefer the following plan:
sounds ok? |
Hi @pnikiel and @ben-farnham , thanks for considering this and counter-proposing! Do you prefer I make a JIRA ticket now, and stop commenting on github? |
Hm I think the answer must be "yes", since that is step 0 of the plan, so I'm doing that now. |
Hello yall! @pnikiel
I'm doing some cleanup, and I noticed open62541-compat has 159 unused parameter compiler warnings. Would you mind if I submitted a MR for those? Or would you prefer to do it yourselves?
List: www.cern.ch/tuna/log_2021_11_19_15h11m29s.txt
The text was updated successfully, but these errors were encountered: