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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs