bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/21364] New: Dead code due to an unreachable condition in o


From: freddy.mallet at sonarsource dot com
Subject: [Bug binutils/21364] New: Dead code due to an unreachable condition in osdata.c
Date: Sun, 09 Apr 2017 16:42:13 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=21364

            Bug ID: 21364
           Summary: Dead code due to an unreachable condition in osdata.c
           Product: binutils
           Version: 2.29 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: freddy.mallet at sonarsource dot com
  Target Milestone: ---

Created attachment 9979
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9979&action=edit
Screenshot of the SonarQube UI spotting this bug.

The following few lines [1] added recently in osdata.c source file leads to
have the overall condition of an 'if' statement being always false (see the
attached screenshot).

This bug has been detected by SonarQube.

[1]-
https://github.com/bminor/binutils-gdb/blame/6ca30fa5613cfa935834f27114d6db4f3854a13e/gdb/osdata.c#L300

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]