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

--- Comment #2 from David L. <equinox-gccbugs at diac24 dot net> ---
(In reply to Marek Polacek from comment #1)
> 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().

Hm.  It doesn't seem to produce a warning for the system's/glibc's wait()
definition, even though there is no __extension__ on that.  I guess that's
special-handling for system headers(?)

(Either way our target language is "C with gcc/clang/icc common extensions", so
I guess -pedantic is not appropriate...)

Reply via email to