http://llvm.org/bugs/show_bug.cgi?id=21689
Bug ID: 21689
Summary: missing-field-initializers too aggressive for C's {0}
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
Clang will warn on `{0}` as -Wmissing-field-initializers even in C code. The
language provides this to explicitly say "initialize everything to zero". Some
discussion here:
http://clang-developers.42468.n3.nabble.com/Wmissing-field-initializers-td3761260.html
I'm fine with John's solution of only relaxing this for C code.
--
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