This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/53469] #pragma GCC diagnostic works, but using _Pragma doesn't for -Wunused-local-typedefs
- From: "spencer8 at sbcglobal dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 08 Sep 2016 03:32:18 +0000
- Subject: [Bug preprocessor/53469] #pragma GCC diagnostic works, but using _Pragma doesn't for -Wunused-local-typedefs
- Auto-submitted: auto-generated
- References: <bug-53469-4@http.gcc.gnu.org/bugzilla/>
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.