Title: [201247] trunk
Revision
201247
Author
[email protected]
Date
2016-05-22 03:58:12 -0700 (Sun, 22 May 2016)

Log Message

Suppress -Wmissing-field-initializers warnings with GCC 4.9
https://bugs.webkit.org/show_bug.cgi?id=157888

Reviewed by Michael Catanzaro.

* Source/cmake/WebKitHelpers.cmake:

Modified Paths

Diff

Modified: trunk/ChangeLog (201246 => 201247)


--- trunk/ChangeLog	2016-05-21 23:52:37 UTC (rev 201246)
+++ trunk/ChangeLog	2016-05-22 10:58:12 UTC (rev 201247)
@@ -1,3 +1,12 @@
+2016-05-22  Csaba Osztrogonác  <[email protected]>
+
+        Suppress -Wmissing-field-initializers warnings with GCC 4.9
+        https://bugs.webkit.org/show_bug.cgi?id=157888
+
+        Reviewed by Michael Catanzaro.
+
+        * Source/cmake/WebKitHelpers.cmake:
+
 2016-05-20  Joseph Pecoraro  <[email protected]>
 
         Remove LegacyProfiler

Modified: trunk/Source/cmake/WebKitHelpers.cmake (201246 => 201247)


--- trunk/Source/cmake/WebKitHelpers.cmake	2016-05-21 23:52:37 UTC (rev 201246)
+++ trunk/Source/cmake/WebKitHelpers.cmake	2016-05-22 10:58:12 UTC (rev 201247)
@@ -20,6 +20,11 @@
             set(OLD_COMPILE_FLAGS "-Wno-parentheses-equality ${OLD_COMPILE_FLAGS}")
         endif ()
 
+        # Suppress -Wmissing-field-initializers due to a GCC bug, see https://bugs.webkit.org/show_bug.cgi?id=157888 for details.
+        if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION MATCHES "4\\.9")
+            set(OLD_COMPILE_FLAGS "-Wno-missing-field-initializers ${OLD_COMPILE_FLAGS}")
+        endif ()
+
         # Enable warnings by default
         if (NOT ${OPTION_IGNORECXX_WARNINGS})
             set(OLD_COMPILE_FLAGS "-Wall -Wextra -Wcast-align -Wformat-security -Wmissing-format-attribute -Wpointer-arith -Wundef -Wwrite-strings ${OLD_COMPILE_FLAGS}")
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to