[Bug c/62184] [C/C++] Extend -Wempty-body to 'while' loops

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Aug 21 01:13:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62184

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
We had this and it got removed (see PR36478). Perhaps a better implementation
is possible now that we track macro locations.

(I wonder how the Clang guys get away with warning about all this stuff by
default. Is it because they have very good heuristics to avoid being annoying?)


More information about the Gcc-bugs mailing list