Pedantic stuff is warning about unused variables, unused parameters with a name (yes), in some standard forms not declaring a function with an empty parameter list as (void) but as (), stuff like that. The stuff just about nobody commonly thinks should be considered wrong, but really is.Solar wrote:Note that "-pedantic" does not refer to "pedantic error-checking" but rather "pedantic adherence to what the standard says". At some points the standard requires a diagnostic where "GNU style" doesn't, and vice versa.Brynet-Inc wrote:And then you could turn on the -pedantic (or -pedantic-errors) flag...
Solar, I see a long list of possible warnings but no -Wextra. Any reason for that?