[Dune] [#951] Fix warning: unused parameter

Dune flyspray at dune-project.org
Thu Sep 15 15:09:28 CEST 2011


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#951 - Fix warning: unused parameter
User who did this - Elias Pipping (pipping)

----------
-Wunused-parameter is implied by "-Wall -Wunused" and "-Wextra" but not plain "-Wall" (which is the autotools default).

The #pragma unused invocation is not too ugly and has the advantage of being ignored by any compiler that does not support it.

There is also __attribute__((unused)) but that's not only long and ugly, but also only supported by gcc I think.

One could also say that if doxygen is used with code that does not declare functions separately, unused variables cannot be avoided in a portable way, so that warnings about such should just be ignored/disabled.
----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=951#comment2685

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list