[Groonga-commit] groonga/groonga at 65fd6d0 [master] Disable -Wcast-align with clang

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Apr 25 11:38:11 JST 2018


Kouhei Sutou	2018-04-25 11:38:11 +0900 (Wed, 25 Apr 2018)

  New Revision: 65fd6d0b599ee1b120caa2ecc3bd9e17eae4695e
  https://github.com/groonga/groonga/commit/65fd6d0b599ee1b120caa2ecc3bd9e17eae4695e

  Message:
    Disable -Wcast-align with clang
    
    Because it's meaningless for us.

  Modified files:
    CMakeLists.txt
    configure.ac

  Modified: CMakeLists.txt (+3 -3)
===================================================================
--- CMakeLists.txt    2018-04-24 16:09:27 +0900 (2b0f77945)
+++ CMakeLists.txt    2018-04-25 11:38:11 +0900 (5d95fd1ad)
@@ -185,9 +185,9 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGCXX)
   check_build_flag("-Wfloat-equal")
   check_build_flag("-Wpointer-arith")
   check_cflag("-Wbad-function-cast")
-  if(NOT CMAKE_COMPILER_IS_CLANGCXX)
-    check_build_flag("-Wcast-align")
-  endif()
+  # 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")

  Modified: configure.ac (+3 -3)
===================================================================
--- configure.ac    2018-04-24 16:09:27 +0900 (db42d265c)
+++ configure.ac    2018-04-25 11:38:11 +0900 (4d2026a58)
@@ -175,9 +175,9 @@ if test "$GCC" = "yes"; then
   if test "x$check_cflag" = "xyes"; then
     NO_BAD_FUNCTION_CAST_CFLAGS="-Wno-bad-function-cast"
   fi
-  if test "$CLANG" = "no"; then
-    CHECK_BUILD_FLAG([-Wcast-align])
-  fi
+#  if test "$CLANG" = "no"; then
+#   CHECK_BUILD_FLAG([-Wcast-align])
+#  fi
 #  CHECK_BUILD_FLAG([-Wredundant-decls])
 #  CHECK_BUILD_FLAG([-Wunsafe-loop-optimizations])
 #  CHECK_BUILD_FLAG([-Wunreachable-code])
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180425/4585adc4/attachment-0001.htm 



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