gcc : Is using -Werror and -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 13:23 UTC
Read the original article Hit count: 318

Filed under:
|
|

I'm just digging into the gcc manual and some things are still unclear to me:

  1. When specifying a std, should I always use -pedantic in conjunction?
  2. When using -g, it the standard level sufficient or should I specify level 3, i.e. -g3?
  3. 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

Related posts about gcc

Related posts about warnings