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

            Bug ID: 71326
           Summary: libcilkrts/runtime/sslib/snprintf_support.c:87]:
                    (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: ---

libcilkrts/runtime/sslib/snprintf_support.c:87]: (style) Redundant condition:
If 'EXPR == '.'', the comparison 'EXPR != 0' is always true.

Source code is

     if ( format[index] != '\0' && format[index] == '.') {

Suggest new code

     if (format[index] == '.') {

Reply via email to