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

            Bug ID: 89259
           Summary: liboffloadmic/runtime/offload_omp_host.cpp:692:
                    pointless test ?
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

liboffloadmic/runtime/offload_omp_host.cpp:692]: (style) Checking if unsigned
expression 'size' is less than zero.

Source code is

    // An incorrect size is treated as failure
    if (size < 0) {
        return 1;
    }

but

    size_t  size,

Reply via email to