title: Best compiler warning level for C/C++ compilers?
body: <p>What compiler warning level do you recommend for different C/C++ compilers?</p>
  
  <p>gcc and g++ will let you get away with a lot on the default level.  I find the best warning level for me is '-Wall'.  And I always try to remove fix the code for the warnings it generates.  (Even the silly ones about using parenthesis for logical precedence rules or to say I really mean 'if (x = y)')</p>
  
  <p>What are your favorite levels for the different compilers, such as Sun CC, aCC (HPUX ?), Visual Studio, intel?</p>
  
  <p>Edit:</p>
  
  <p>I just wanted to point out that I don't use "-Werror" (but I do understand it's utility) on gcc/g++ because, I use:</p>
  
  <pre>
  #warning "this is a note to myself"
  </pre>
  
  <p>in a few places in my code.  Do all the compilers understand the #warning macro?</p>