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: dcough...@apple.com
Reporter: vpodob...@mail.ru
CC: dcough...@apple.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs