In C code you would need something like


int foo (int a, int b __attribute__ ((unused)))
{
}


In C++ you can also just eliminate the name: