https://bugs.kde.org/show_bug.cgi?id=517597

            Bug ID: 517597
           Summary: auxprogs/getoff.c:151: pointless test ?
    Classification: Developer tools
           Product: valgrind
      Version First 3.27 GIT
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Static analyser cppcheck says:

auxprogs/getoff.c:151:30: style: Unsigned expression 'modid_offset' can't be
negative so it is unnecessary to test it. [unsignedPositive]

Source code is

         assert(modid_offset >= 0 && modid_offset < MAX_LINKMAP_WORDS);

but

      size_t modid_offset;

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to