[Groonga-commit] groonga/groonga at 88c8a13 [master] mrb: don't use -Wbad-function-cast build flag for mruby

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Jul 17 11:47:29 JST 2015


Kouhei Sutou	2015-07-17 11:47:29 +0900 (Fri, 17 Jul 2015)

  New Revision: 88c8a13fcea5c667941e478726e7074604b58aba
  https://github.com/groonga/groonga/commit/88c8a13fcea5c667941e478726e7074604b58aba

  Message:
    mrb: don't use -Wbad-function-cast build flag for mruby

  Modified files:
    configure.ac
    vendor/mruby/Makefile.am

  Modified: configure.ac (+5 -0)
===================================================================
--- configure.ac    2015-07-17 11:43:43 +0900 (dad29c7)
+++ configure.ac    2015-07-17 11:47:29 +0900 (6bf747c)
@@ -142,6 +142,7 @@ TEST_CFLAGS=""
 TEST_CXXFLAGS=""
 NO_STRICT_ALIASING_CFLAGS=""
 NO_FLOAT_EQUAL_CFLAGS=""
+NO_BAD_FUNCTION_CAST_CFLAGS=""
 if test "$GCC" = "yes"; then
   CHECK_BUILD_FLAG([-Wall])
   CHECK_BUILD_FLAG([-Wextra])
@@ -166,6 +167,9 @@ if test "$GCC" = "yes"; then
   fi
   CHECK_BUILD_FLAG([-Wpointer-arith])
   CHECK_CFLAG([-Wbad-function-cast])
+  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
@@ -197,6 +201,7 @@ AC_SUBST(TEST_CFLAGS)
 AC_SUBST(TEST_CXXFLAGS)
 AC_SUBST(NO_STRICT_ALIASING_CFLAGS)
 AC_SUBST(NO_FLOAT_EQUAL_CFLAGS)
+AC_SUBST(NO_BAD_FUNCTION_CAST_CFLAGS)
 
 AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL

  Modified: vendor/mruby/Makefile.am (+3 -1)
===================================================================
--- vendor/mruby/Makefile.am    2015-07-17 11:43:43 +0900 (c4285c1)
+++ vendor/mruby/Makefile.am    2015-07-17 11:47:29 +0900 (764aa7e)
@@ -10,7 +10,9 @@ DEFAULT_INCLUDES =						\
 	-Imruby-io/include					\
 	-I$(srcdir)/mruby-io/include
 
-CFLAGS += $(NO_FLOAT_EQUAL_CFLAGS)
+CFLAGS +=					\
+	$(NO_FLOAT_EQUAL_CFLAGS)		\
+	$(NO_BAD_FUNCTION_CAST_CFLAGS)
 
 if WITH_MRUBY
 noinst_LTLIBRARIES = libmruby.la
-------------- next part --------------
HTML����������������������������...
Download 



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