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

These days, both GCC and Clang have a compiler warning about it:

https://developers.redhat.com/blog/2016/02/26/gcc-6-wmislead...

However, for some reason, while GCC puts it under -Wall, Clang (which Apple uses) doesn't enable it even with -Wall -Wextra; you have to manually add -Wmisleading-indentation. It's also not enabled by the default Xcode template.




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

Search: