[Bug c/69415] -Wmisleading-indentation warns on "if (__b < __a) return __b; return __a;"
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 22 17:16:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69415
--- Comment #11 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Contrast with:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811591
which has lots of one-liners e.g.
http://sources.debian.net/src/ifhp/3.5.20-13/src/ifhp.c/#L1348
which is:
if( tempfd > 0 ) close(tempfd); tempfd = -1;
Another example from this one:
if( hash ) FREE_OBJ( hash ); hash = 0;
All of these seem to be in the idiom of "clean up FOO if necessary; reset FOO
always".
More information about the Gcc-bugs
mailing list