[Bug c++/43454] warning with -Wall despite __attribute__ ((__unused__))
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Aug 14 15:08:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43454
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-08-14
CC| |egallager at gcc dot gnu.org
Known to work| |4.0.2
Ever confirmed|0 |1
Known to fail| |4.0.4, 4.1.2, 4.2.4, 4.3.4,
| |4.4.3, 8.0
--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, output now looks like this now that there's underlining and stuff:
$ /usr/local/bin/g++ -c -Wall -S 43454.cc
43454.cc:7:44: warning: ‘check_moo’ defined but not used [-Wunused-variable]
static int (* __attribute__ ((__unused__)) check_moo) (void) = gnulib::moo;
^~~~~~~~~
$
More information about the Gcc-bugs
mailing list