[Bug preprocessor/53469] #pragma GCC diagnostic works, but using _Pragma doesn't for -Wunused-local-typedefs
spencer8 at sbcglobal dot net
gcc-bugzilla@gcc.gnu.org
Thu Sep 8 03:32:00 GMT 2016
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.
More information about the Gcc-bugs
mailing list