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

And then you get warnings about structures being padded and warnings about structures not being padded.


Easy to opt out via -Wno-padding.

I strongly prefer clang‘s

  -Weverything -Wno-c++98compat -Wno-c++98-compat-pedantic -Wno-padded
to gcc‘s

  -Wall -Wextra -Wyes-really-every-single-one -Walso-this -Wjust-turn-it-all-on-please -Walso-this-obscure -Wetc -Ware-you-getting-it


Except if you already have all the flags for GCC then adding a few more for Clang-specific warnings isn't much of a problem.




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

Search: