$ gcc -dumpversion 4.1.1 $ g++ -dumpversion 4.1.1
$ gcc -Wall -Wformat-nonliteral format_nonliteral.c $ g++ -Wall -Wformat-nonliteral format_nonliteral.c format_nonliteral.c: In function int main(int, char**): format_nonliteral.c:10: warning: format not a string literal, argument types not checked -- Summary: -Wformat-nonliteral differs between gcc and g++ Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc at gaul dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31843