[Bug c/65808] -pedantic -std=gnu11 results in warning for transparent_union usage
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 20 13:40:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65808
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I don't think it is a bug. If you use -pedantic, it doesn't matter whether
-std=c11 or -std=gnu11 (the default) is in effect.
If you want to suppress the warning, use __extension__ as you did in the
test().
More information about the Gcc-bugs
mailing list