3.6.4.2 Pedantic-errors Option

The -pedantic-errors option works in the same way as the -pedantic option, only errors, instead of warnings, are issued when a program is not ISO compliant.