[Groonga-commit] groonga/groonga at fe591af [master] Disable -Wfloat-equal for mruby

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Apr 19 22:00:44 JST 2015


Kouhei Sutou	2015-04-19 22:00:44 +0900 (Sun, 19 Apr 2015)

  New Revision: fe591af0cc9147014d8312c51e8b5df33f735412
  https://github.com/groonga/groonga/commit/fe591af0cc9147014d8312c51e8b5df33f735412

  Message:
    Disable -Wfloat-equal for mruby
    
    Because mruby doesn't care about float equal.

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

  Modified: configure.ac (+5 -0)
===================================================================
--- configure.ac    2015-04-19 16:06:06 +0900 (fc6b211)
+++ configure.ac    2015-04-19 22:00:44 +0900 (17f3abc)
@@ -141,6 +141,7 @@ AC_DEFUN([REMOVE_CXXFLAG], [
 TEST_CFLAGS=""
 TEST_CXXFLAGS=""
 NO_STRICT_ALIASING_CFLAGS=""
+NO_FLOAT_EQUAL_CFLAGS=""
 if test "$GCC" = "yes"; then
   CHECK_BUILD_FLAG([-Wall])
   CHECK_BUILD_FLAG([-Wextra])
@@ -160,6 +161,9 @@ if test "$GCC" = "yes"; then
   fi
   CHECK_BUILD_FLAG([-Wdisabled-optimization])
   CHECK_BUILD_FLAG([-Wfloat-equal])
+  if test "x$check_cflag" = "xyes"; then
+    NO_FLOAT_EQUAL_CFLAGS="-Wno-float-equal"
+  fi
   CHECK_BUILD_FLAG([-Wpointer-arith])
   CHECK_CFLAG([-Wbad-function-cast])
   if test "$CLANG" = "no"; then
@@ -192,6 +196,7 @@ fi
 AC_SUBST(TEST_CFLAGS)
 AC_SUBST(TEST_CXXFLAGS)
 AC_SUBST(NO_STRICT_ALIASING_CFLAGS)
+AC_SUBST(NO_FLOAT_EQUAL_CFLAGS)
 
 AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL

  Modified: vendor/mruby/Makefile.am (+2 -0)
===================================================================
--- vendor/mruby/Makefile.am    2015-04-19 16:06:06 +0900 (e903c80)
+++ vendor/mruby/Makefile.am    2015-04-19 22:00:44 +0900 (d995ccf)
@@ -9,6 +9,8 @@ DEFAULT_INCLUDES =				\
 	-Imruby-io/include			\
 	-I$(srcdir)/mruby-io/include
 
+CFLAGS += $(NO_FLOAT_EQUAL_CFLAGS)
+
 if WITH_MRUBY
 noinst_LTLIBRARIES = libmruby.la
 
-------------- next part --------------
HTML����������������������������...
다운로드 



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