Re: unused parameter warning in http.c
On Sat, Jan 31, 2009 at 10:09:28PM +0000, corvid wrote:
surprised me until I remembered that you turned on -W. I didn't realize that plain C doesn't allow the name to be left off in those cases.
What is the usual trick for this? The manpage talks about an 'unused' attribute, but that sounds like a gcc-ism.
In the past, for C, I've used these couple: 1.- Add a dummy test for the unused var. 2.- Remove the parameter from the function and cast it to match. -- Cheers Jorge.- ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
participants (1)
-
jcid@dillo.org