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

Both clang and gcc warn on "if(1);", clang by default, gcc with -Wextra. clang also warns on "while(1);" - I think this is somewhat obnoxious, since it can be useful, and would prefer if it only warned if the semicolon was followed by an opening brace, but YMMV.


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

Search: