[LLVMbugs] [Bug 21689] New: missing-field-initializers too aggressive for C's {0}

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 28 13:33:23 PST 2014


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: unassignedclangbugs at nondot.org
          Reporter: danalbert at google.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141128/85fa5320/attachment.html>


More information about the llvm-bugs mailing list