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.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils