[LLVMbugs] [Bug 15339] New: -Wpadded does not emit warning when struct is unused
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Feb 23 05:03:32 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=15339
Bug ID: 15339
Summary: -Wpadded does not emit warning when struct is unused
Product: clang
Version: 3.2
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: 1zeeky at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10058
--> http://llvm.org/bugs/attachment.cgi?id=10058&action=edit
testcase
When a struct is defined, needs to be padded but is not instantiated, clang
will not emit a warning.
Compile the attached testcase with -Wpadded; No warning will be shown.
Uncomment line 10 (struct instantiation), now the warning will show.
--
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/20130223/b0beba21/attachment.html>
More information about the llvm-bugs
mailing list