summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2018-08-06 07:25:50 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2018-08-06 19:02:21 +0100
commit4e523fb823fe21021504581942cf528cbf542122 (patch)
treeeaeb2ac20760221443c8bad5c116e16ab617409f /Tools
parent7a8efb901e9c2fe8b9f13af64e7da48a25a31918 (diff)
downloadswig-4e523fb823fe21021504581942cf528cbf542122.tar.gz
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);
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/testflags.py2
1 files changed, 1 insertions, 1 deletions
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,
}