The difference between -pedantic-errors and -Werror=pedantic in gcc -
what difference between using -pedantic-errors , -werror=pedantic in gcc?
according documentation of gcc there difference:
-pedantic-errors
give error whenever base standard (see -wpedantic) requires diagnostic, in cases there undefined behavior @ compile-time , in other cases not prevent compilation of programs valid according standard. not equivalent -werror=pedantic, since there errors enabled option , not enabled latter , vice versa.
what errors included -pedantic-errors, not -werror=pedantic?
what errors included -werror=pedantic, not -pedantic-errors?
any example of both types of errors?
Comments
Post a Comment