https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65808
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- (In reply to David L. from comment #2) > 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(?) Yes, likely: if you put the declarations in your test case into a header file along with #pragma GCC system_header, you won't see any warnings. I'm marking this as resolved. If anyone thinks I'm wrong, please reopen.