
4 Apr
2007
4 Apr
'07
9:18 p.m.
On Wed, 4 Apr 2007 13:35:01 -0700, "Jon A. Cruz" <jon@...18...> wrote:
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?
Yes, it's valid in C++ but not (strict) C. The portable C solution is what Jon gives below:
void foo ( int bar ) { (void)bar; ...
}
As this is somewhat ugly, I would still recommend omitting the parameter name when you have the luxury of working in C++.
-mental