Re: [AD] -Wno-unused

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Daniel Schlyder wrote:

Dustin Dettmer:
According to my understanding, the correct way to achieve that is be not
including the variable name.
I don't think that is valid C. I get "parameter name omitted" error with
MinGW GCC 3.4.2. It works in C++, though. As I said in my other mail, GCC's
'unused' attribute will work.

This is the portable way:

int foo(int x, int y)
{
   (void)y;
   return x;
}

Peter




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/