[LLVMbugs] [Bug 16054] New: Missing "uninitialized" warning
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri May 17 06:48:49 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16054
Bug ID: 16054
Summary: Missing "uninitialized" warning
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: mimomorin at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
In the following code, `cond` is uninitialized in `while (cond)`.
However, the "uninitialized" warning (i.e. "variable 'cond' is uninitialized
when used here") does not emit.
int main(int argc, char* argv[])
{
int cond;
// Missing "uninitialized" warning
while (cond != 0) {
// `(void)` is used to avoid "unused-value" warning
(void)&cond;
}
return 0;
}
--
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/20130517/50cf2158/attachment.html>
More information about the llvm-bugs
mailing list