C

Asked • 04/26/19

How to 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`.

1 Expert Answer

By:

Inactive Tutor answered • 3d

Tutor
New to Wyzant

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.