gcc - using -werror and -std= -pedantic considered good practice?
Posted
by Helper Method
on Stack Overflow
See other posts from Stack Overflow
or by Helper Method
Published on 2010-04-04T10:58:35Z
Indexed on
2010/04/04
11:03 UTC
Read the original article
Hit count: 243
gcc
I'm just digging into the gcc manual and some things are still unclear to me:
a) When specifying a std, should I always use -pedantic in conjunction? b) When using -g, it the standard level sufficient or should I specify level 3, i.e. -g3? c) Is it good practice to use -Werror to promote all warnings to errors and -pedantic-errors to promote all pedantic warnings to errors?
© Stack Overflow or respective owner