[LLVMbugs] [Bug 19493] New: False positive: Function call argument is an uninitialized value
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Apr 20 05:46:45 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19493
Bug ID: 19493
Summary: False positive: Function call argument is an
uninitialized value
Product: clang
Version: 3.4
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
Assignee: kremenek at apple.com
Reporter: shachar at shemesh.biz
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The file is a test file part of fakeroot-ng:
http://sourceforge.net/p/fakerootng/source/ci/multithreaded_debugger/tree/tests/getsiginfo.c#l102
../../tests/getsiginfo.c:102:13: warning: Function call argument is an
uninitialized value
sig=print_wait_res( pid, status );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
The line immediately before is:
pid=wait(&status);
"wait", in this case, is the syscall:
http://linux.die.net/man/2/wait
The warning fails to explain which argument it thinks is uninitialized, but I
think it's fairly clear both are.
--
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/20140420/24165edf/attachment.html>
More information about the llvm-bugs
mailing list