on-internet
← Community

How can I suppress "unused parameter" warnings in C?

Stack Overflow ·

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

Comments

Sign in or sign up to comment and upvote.

No comments yet.