[Bug other/71327] New: libiberty/cplus-dem.c:2702]: (style) Redundant condition

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Sat May 28 16:32:00 GMT 2016


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

            Bug ID: 71327
           Summary: libiberty/cplus-dem.c:2702]: (style) Redundant
                    condition
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

libiberty/cplus-dem.c:2702]: (style) Redundant condition: If 'EXPR == '_'', the
comparison 'EXPR' is always true.

Source code is 

     while (*scan && *scan == '_')

Suggest new code

     while (*scan == '_')


More information about the Gcc-bugs mailing list