[llvm-bugs] [Bug 51361] New: Obvious false positive: 'ret' is read by 'return ret; '. scan-build reports 'ret never read'.
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 5 08:41:22 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51361
Bug ID: 51361
Summary: Obvious false positive: 'ret' is read by 'return
ret;'. scan-build reports 'ret never read'.
Product: clang
Version: 11.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
Assignee: dcoughlin at apple.com
Reporter: vpodobaev at mail.ru
CC: dcoughlin at apple.com, llvm-bugs at lists.llvm.org
Created attachment 25108
--> https://bugs.llvm.org/attachment.cgi?id=25108&action=edit
false positive report
Hello.
I'm using scan-build-11 from clang-tools-11 1:11.0.1-2~bpo10+1 (Debian 10).
Attaching the false positive report.
Line 134: ret = 0;
scan-build says, ret is never read anymore.
But next line: goto end;
And on line 147: return ret;
So, ret is obviously read.
Best regards, Vladimir
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210805/132622d9/attachment.html>
More information about the llvm-bugs
mailing list