[cmake] Suppress parentheses-equality warnings
authorossy@webkit.org <ossy@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 1 Jun 2015 09:11:05 +0000 (09:11 +0000)
committerossy@webkit.org <ossy@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 1 Jun 2015 09:11:05 +0000 (09:11 +0000)
https://bugs.webkit.org/show_bug.cgi?id=145126

Reviewed by Darin Adler.

* Source/cmake/WebKitHelpers.cmake:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@185055 268f45cc-cd09-0410-ab3c-d52691b4dbfc

ChangeLog
Source/cmake/WebKitHelpers.cmake

index 8f1fb44..70415a8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2015-06-01  Csaba Osztrogon√°c  <ossy@webkit.org>
+
+        [cmake] Suppress parentheses-equality warnings
+        https://bugs.webkit.org/show_bug.cgi?id=145126
+
+        Reviewed by Darin Adler.
+
+        * Source/cmake/WebKitHelpers.cmake:
+
 2015-05-28  Carlos Alberto Lopez Perez  <clopez@igalia.com>
 
         [CMake] Improve detection and usage of GL/GLES/EGL libraries.
index 320b94f..a1e6503 100644 (file)
@@ -15,6 +15,11 @@ macro(WEBKIT_SET_EXTRA_COMPILER_FLAGS _target)
             set(OLD_COMPILE_FLAGS "-fPIC ${OLD_COMPILE_FLAGS}")
         endif ()
 
+        # Suppress -Wparentheses-equality warning of Clang
+        if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+            set(OLD_COMPILE_FLAGS "-Wno-parentheses-equality ${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}")