Summary: | False positive warning triggered by -Wmaybe-uninitialized | ||
---|---|---|---|
Product: | gcc | Reporter: | Arnaud Lacombe <lacombar> |
Component: | middle-end | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | jeffreyalaw, Laurent.Rineau__gcc, manu |
Priority: | P3 | ||
Version: | 4.5.1 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2012-10-25 00:00:00 | |
Bug Depends on: | |||
Bug Blocks: | 24639 | ||
Attachments: | reduced testcase |
Description
Arnaud Lacombe
2011-07-26 01:29:35 UTC
Created attachment 24834 [details]
reduced testcase
This is a semi standard issue with uninitialized variable warnings. Still present in GCC 4.8.0pr49848.c: In function ‘foo’: pr49848.c:14:21: warning: ‘b’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (a != NULL && b != NULL) ^ |