public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66290] New: wrong location for -Wunused-macros
@ 2015-05-26 12:06 manu at gcc dot gnu.org
  2022-07-11 21:53 ` [Bug c++/66290] " lhyatt at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: manu at gcc dot gnu.org @ 2015-05-26 12:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66290

            Bug ID: 66290
           Summary: wrong location for -Wunused-macros
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: manu at gcc dot gnu.org
  Target Milestone: ---

/* { dg-do compile } */
/* { dg-options "-E -Wunused-macros" } */
#define BAR
#define FOO

manuel@gcc14:~/test2$ ./223651/build/gcc/cc1 -Wunused-macros pragma-diag-4.c 

pragma-diag-4.c:4:0: warning: macro "FOO" is not used [-Wunused-macros]
 #define FOO
^
pragma-diag-4.c:3:0: warning: macro "BAR" is not used [-Wunused-macros]
 #define BAR
^

Not perfect, but ok.

manuel@gcc14:~/test2$ ./223651/build/gcc/cc1plus -Wunused-macros
pragma-diag-4.c 
pragma-diag-4.c:1:0: warning: macro "FOO" is not used [-Wunused-macros]
 /* { dg-do compile } */
^
pragma-diag-4.c:1:0: warning: macro "BAR" is not used [-Wunused-macros]


Terrible!


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-06-20 22:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-26 12:06 [Bug c++/66290] New: wrong location for -Wunused-macros manu at gcc dot gnu.org
2022-07-11 21:53 ` [Bug c++/66290] " lhyatt at gcc dot gnu.org
2022-07-12 13:40 ` lhyatt at gcc dot gnu.org
2022-07-28 14:15 ` lhyatt at gcc dot gnu.org
2022-07-31 12:13 ` cvs-commit at gcc dot gnu.org
2022-07-31 12:15 ` lhyatt at gcc dot gnu.org
2022-08-05 16:17 ` lhyatt at gcc dot gnu.org
2023-06-20 22:04 ` cvs-commit at gcc dot gnu.org
2023-06-20 22:05 ` lhyatt at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).