[Groonga-commit] groonga/groonga at 7103983 [master] cmake: disable -Wcast-align with clang

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Jul 24 11:09:38 JST 2015


Kouhei Sutou	2015-07-24 11:09:38 +0900 (Fri, 24 Jul 2015)

  New Revision: 7103983c84d02b5b35a80c86ab17cdfb7a5e910c
  https://github.com/groonga/groonga/commit/7103983c84d02b5b35a80c86ab17cdfb7a5e910c

  Message:
    cmake: disable -Wcast-align with clang
    
    It should be fixed later...

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+3 -1)
===================================================================
--- CMakeLists.txt    2015-07-23 19:12:03 +0900 (3124fc8)
+++ CMakeLists.txt    2015-07-24 11:09:38 +0900 (4f3de95)
@@ -184,7 +184,9 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGCXX)
   check_build_flag("-Wpointer-arith")
   check_cflag("-Wdeclaration-after-statement")
   check_cflag("-Wbad-function-cast")
-  check_build_flag("-Wcast-align")
+  if(NOT CMAKE_COMPILER_IS_CLANGCXX)
+    check_build_flag("-Wcast-align")
+  endif()
   # check_build_flag("-Wredundant-decls")
   check_build_flag("-Wwrite-strings")
   check_cxxflag("-fexceptions")
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index