[Webkit-unassigned] [Bug 157888] New: Suppress -Wmissing-field-initializers warnings with GCC 4.9

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 19 04:32:38 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=157888

            Bug ID: 157888
           Summary: Suppress -Wmissing-field-initializers warnings with
                    GCC 4.9
    Classification: Unclassified
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ossy at webkit.org

There are many build failures with GCC 4.9, because this GCC version is buggy
and reports false positive warnings for empty initializer lists:

DerivedSources/WebCore/JSIDBObjectStore.cpp: In function 'T WebCore::convert(JSC::ExecState&, JSC::JSValue) [with T = WebCore::IDBObjectStore::IndexParameters]':
DerivedSources/WebCore/JSIDBObjectStore.cpp:55:18: error: missing initializer for member 'WebCore::IDBObjectStore::IndexParameters::unique' [-Werror=missing-field-initializers]
DerivedSources/WebCore/JSIDBObjectStore.cpp:55:18: error: missing initializer for member 'WebCore::IDBObjectStore::IndexParameters::multiEntry' [-Werror=missing-field-initializers]
DerivedSources/WebCore/JSIDBObjectStore.cpp:59:18: error: missing initializer for member 'WebCore::IDBObjectStore::IndexParameters::unique' [-Werror=missing-field-initializers]
DerivedSources/WebCore/JSIDBObjectStore.cpp:59:18: error: missing initializer for member 'WebCore::IDBObjectStore::IndexParameters::multiEntry' [-Werror=missing-field-initializers]
cc1plus: all warnings being treated as errors

DerivedSources/WebCore/JSFontFace.cpp: In function 'T WebCore::convert(JSC::ExecState&, JSC::JSValue) [with T = WebCore::FontFace::Descriptors]':
DerivedSources/WebCore/JSFontFace.cpp:100:18: error: missing initializer for member 'WebCore::FontFace::Descriptors::style' [-Werror=missing-field-initializers]
DerivedSources/WebCore/JSFontFace.cpp:100:18: error: missing initializer for member 'WebCore::FontFace::Descriptors::weight' [-Werror=missing-field-initializers]
...

DerivedSources/WebCore/JSElement.cpp: In function 'T WebCore::convert(JSC::ExecState&, JSC::JSValue) [with T = WebCore::Element::ShadowRootInit]':
DerivedSources/WebCore/JSElement.cpp:119:18: error: missing initializer for member 'WebCore::Element::ShadowRootInit::mode' [-Werror=missing-field-initializers]
cc1plus: all warnings being treated as errors

DerivedSources/WebCore/JSMutationObserver.cpp: In function 'T WebCore::convert(JSC::ExecState&, JSC::JSValue) [with T = WebCore::MutationObserver::Init]':
DerivedSources/WebCore/JSMutationObserver.cpp:47:18: error: missing initializer for member 'WebCore::MutationObserver::Init::childList' [-Werror=missing-field-initializers]
DerivedSources/WebCore/JSMutationObserver.cpp:47:18: error: missing initializer for member 'WebCore::MutationObserver::Init::attributes' [-Werror=missing-field-initializers]
...

I think the easiest way to fix these build failures is suppressing this warning with GCC 4.9

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160519/7aeed38f/attachment-0001.html>


More information about the webkit-unassigned mailing list