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

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -