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