[Bug c/69415] -Wmisleading-indentation warns on "if (__b < __a) return __b; return __a;"

trippels at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 21 17:08:00 GMT 2016


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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

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

--- Comment #6 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Also happens when building LLVM:

 268     case lltok::kw_attributes: if (ParseUnnamedAttrGrp()) return true;
break;                                                                          
 269     case lltok::kw_uselistorder: if (ParseUseListOrder()) return true;
break;                                                                          
 270     case lltok::kw_uselistorder_bb:                                        
 271                                  if (ParseUseListOrderBB()) return true;
break;    

were gcc warn for the third case.

I think the warning should be disabled for one-liners in general.


More information about the Gcc-bugs mailing list