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 preprocessor/53469] #pragma GCC diagnostic works, but using _Pragma doesn't for -Wunused-local-typedefs


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

j8spencer <spencer8 at sbcglobal dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |spencer8 at sbcglobal dot net

--- Comment #4 from j8spencer <spencer8 at sbcglobal dot net> ---
I'm still seeing this behavior in 4.8.4.  #pragma can ignore
unused-local-typedefs, _Pragma cannot.  This is on Ubuntu 16.04.  Options are
-fPIE -O3 -NDEBUG -Wall -Wextra -Werror.  Because of -Werror, I also tried
putting in _Pragma ("GCC diagnostic warning \"-Wunused-local-typedefs\"")
before the ignored.  But regular #pragma works just fine.

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