October 22, 2024
Chicago 12, Melborne City, USA
C#

How can I suppress “unused parameter” warnings in C?


For instance:

Bool NullFunc(const struct timespec *when, const char *who)
{
   return TRUE;
}

In C++ I was able to put a /*...*/ comment around the parameters. But not in C, of course, where it gives me the error:

error: parameter name omitted



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video