
4 Apr
2007
4 Apr
'07
8:35 p.m.
On Apr 4, 2007, at 1:28 PM, Gustav Broberg wrote:
Then I have a question about compiler warnings. Compiling gdl with our gcc flags gives a lot of warnings about unused parameters (they are unused params in callback functions, so the warnings don't really apply here). Is there an easy way to suppress them just for this directory using the current build system? There's a trick mentioned in configure.ac:684 that suggest that removing the parameter name would fix this, but I'm getting an "error: parameter name omitted" when trying it? Is it perhaps valid C++, but invalid C?
I believe that the portable and C / C++ way to do it is to just reference the parameter
void foo ( int bar ) { (void)bar; ...
}