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"); -- Joseph S. Myers jos...@codesourcery.com