Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A tiny comparison: -Wall -pedantic gives me:

  warning: C++ style comments are not allowed in ISO C90
  warning: ISO C90 forbids mixed declarations and code
-Wall -Wextra gives me:

   warning: unused parameter ‘type’
For me, -Wextra is much more useful for finding messy code.


Use both of them. The last warning is about messy code, but the first two will help you keep the code portable.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: