[Bug c++/79078] Warnings from deprecated attribute are too noisy
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 13 16:30:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |msebor at gcc dot gnu.org
--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
This also affects C (and possibly Objective C/C++). Not sure what Component
might cover both (or all) or if they each need their own bug.
$ cat t.c && gcc -S t.c
struct __attribute__ ((deprecated ("D is bad mmmkay"))) D { };
struct D d1, d2;
t.c:3:8: warning: ‘D’ is deprecated: D is bad mmmkay
[-Wdeprecated-declarations]
struct D d1, d2;
^
t.c:1:57: note: declared here
struct __attribute__ ((deprecated ("D is bad mmmkay"))) D { };
^
t.c:3:8: warning: ‘D’ is deprecated: D is bad mmmkay
[-Wdeprecated-declarations]
struct D d1, d2;
^
t.c:1:57: note: declared here
struct __attribute__ ((deprecated ("D is bad mmmkay"))) D { };
^
More information about the Gcc-bugs
mailing list