This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/71517] g++ gives different warnings if compiling a file directly or adding preprocess step


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Preprocessing loses macro invocation context information, so such differences
are expected (use -Wsystem-headers if you want to see warnings regardless if
something comes from system headers or not, or better preprocess just with -E
-fdirectives-only so that such information is not lost).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]