From 4e523fb823fe21021504581942cf528cbf542122 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Mon, 6 Aug 2018 07:25:50 +0100 Subject: [PATCH] Fix Travis Ruby MacOS builds with -Wno-deprecated-declarations Work around Ruby on MacOS Xcode 9.4 misconfiguration defining 'isfinite' to deprecated 'finite'. Example warning: li_std_list_wrap.cxx:7197:9: error: 'finite' is deprecated: first deprecated in macOS 10.9 [-Werror,-Wdeprecated-declarations] if (SWIG_Float_Overflow_Check(v)) { ^ li_std_list_wrap.cxx:7156:73: note: expanded from macro 'SWIG_Float_Overflow_Check' ^ li_std_list_wrap.cxx:7122:29: note: expanded from macro 'SWIG_isfinite' ^ /Users/travis/.rvm/rubies/ruby-2.4.3/include/ruby-2.4.0/ruby/missing.h:180:24: note: expanded from macro 'isfinite' ^ /usr/include/math.h:757:12: note: 'finite' has been explicitly marked deprecated here extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA); --- Tools/testflags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/testflags.py b/Tools/testflags.py index 981e8d59a..31ca2e7bd 100755 --- a/Tools/testflags.py +++ b/Tools/testflags.py @@ -46,7 +46,7 @@ def get_cxxflags(language, std, compiler): "php":"-Werror " + cxx_common, "python":"-Werror " + cxx_common, "r":"-Werror " + cxx_common, - "ruby":"-Werror " + cxx_common, + "ruby":"-Werror " + cxx_common + "-Wno-deprecated-declarations", # For Ruby on MacOS Xcode 9.4 misconfiguration defining 'isfinite' to deprecated 'finite' "scilab":"-Werror " + cxx_common, "tcl":"-Werror " + cxx_common, }