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

You mean you people don't have all warnings turned on, with -Werror as well? Here, how about I list the ones my project doesn't use, and why:

-Waggregate-return - everything returns an aggregate in C++, and that's not necessarily a bad thing.

-Wlong-long - We use long longs.

-Wmissing-declarations - We don't need to declare every internal function before we use it.

-Wmissing-include-dirs - Sadly necessary; gcc seems to include some on its own.

-Wpadded - Everything's padded.

-Wsystem-headers - I only wish I was in a position where this could be useful :)

As K&R would say, let the machine do the dirty work. If a warning check exists, there's probably a good reason for it.



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

Search: