Hacker News new | past | comments | ask | show | jobs | submit login

Apparently -Wall and -Wextra is believed to be enough; not sure what to expect with -Weverything but I'm intrigued :)

EDIT: interesting indeed. Thanks for the pointer!

(Add warning levels) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53313




Yeah, as has been mentioned many times before `-Wall -Wextra` leaves out a ton of warnings/errors (despite what the names imply). `-Weverything` is an alias for enabling all warnings. I find it much better practice to enable all warnings and then selectively disable the ones which warn me about things I have done intentionally through pragmas in the code.


I like to use -Wpedantic for my own projects to keep the code clean and it helped my well. Its not included in -Wall and -Wextra.




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

Search: