[Bug c++/71517] g++ gives different warnings if compiling a file directly or adding preprocess step
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 13 10:58:00 GMT 2016
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).
More information about the Gcc-bugs
mailing list