On 10/08/2016 17:58, Joseph Myers wrote: > On Wed, 10 Aug 2016, Paolo Bonzini wrote: > >> There are indeed many pedwarn(loc, 0, ...) occurrences in C++ (most, but >> not all, are "foo only available with -std=bar" which in the C front-end >> would use OPT_Wpedantic, OPT_W*compat be enabled by specific flags such >> as -Wvariadic-macros). In C I only see three: > > I don't know why you think there are only three; there are loads. The > first few in c-decl.c are: > > pedwarn (csi->location, 0, > "%qD is static but used in inline function %qD " > "which is not static", csi->static_decl, csi->function); > > pedwarn (csi->location, 0, > "%q+D is static but declared in inline function %qD " > "which is not static", csi->static_decl, csi->function); > > pedwarn (input_location, 0, > "inline function %q+D declared but never defined", > p); > > pedwarned = pedwarn (input_location, 0, > "conflicting types for %q+D", newdecl); > > pedwarned = pedwarn (input_location, 0, > "conflicting types for %q+D", newdecl); > > pedwarn (input_location, 0, > "unnamed struct/union that defines no instances"); >
Hmm I was searching toplevel and c-family/. I forgot that c/ now exists, my knowledge is getting very dated... Paolo