Re: Re: MSVC pedantry - compiler warning
Charlie Reitzel <[email protected]> Mon, 30 Jan 2006 08:58:28 -0500
| Newsgroups | gmane.comp.web.html-tidy.devel |
|---|---|
| Message-ID | <[email protected]> |
At 12:30 AM 1/30/2006 +1100, Geoff Air wrote:
>There is an UNREFERENCED_PARAMETER macro in the windows.h
>suite, but it has to be put in the body of the function,
>not in the parameter list ...
Sorry, must have been thinking of this. That and C++ syntax,
which allows the following:
int foo( int x, int )
{
printf( "%d\n", x );
return x;
}
Simply leaving a parameter unnamed tells the compiler it is not used.
Anyway, for C, I take your point.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642