This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ARI] Status of ATTRIBUTE_UNUSED in gdb sources
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: <gdb at sourceware dot org>
- Cc: <gdb-patches at sourceware dot org>
- Date: Tue, 4 May 2010 15:48:54 +0200
- Subject: [ARI] Status of ATTRIBUTE_UNUSED in gdb sources
The Awk Regression Index page:
http://sourceware.org/gdb/current/ari/
Only has one Critical entry at top before the big table:
BUG ATTRIBUTE_UNUSED with 18 occurences.
Description is:
Do not use ATTRIBUTE_UNUSED, do not bother (GDB is compiled with
-Werror and, consequently, is not able to tolerate false warnings. Since
-Wunused-param produces such warnings, neither that warning flag nor
ATTRIBUTE_UNUSED are used by GDB.
Is this comment still valid, from the compiler point of view?
Does gcc still have such problems?
If yes, is it OK if I remove all
ATTRIBUTE_UNUSED from sources?
If no, shouldn't we change that policy?
Pierre Muller
as ARI maintainer for GDB