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().