Menu
Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Table of "safe" methods to suppress "unused parameter" warnings?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Ian Collins, post: 5152236"] How so? Consider for example a device driver interface that uses a struct of function pointers (a pretty common case). All divers use the same struct, but not all divers require all of the parameters that are passed. Having the parameter unnamed clearly documents that it is unused. True, but it is ugly. What possible harm could unnamed parameters cause? Unnamed parameters are quite common in C++, probably more common than cases where they would be useful in C. While the potential uses aren't a common in C, the feature would still be a useful, cost free, addition. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Table of "safe" methods to suppress "unused parameter" warnings?
Top