Author: hwright
Date: Fri Dec 14 03:03:52 2012
New Revision: 1421645
URL: http://svn.apache.org/viewvc?rev=1421645&view=rev
Log:
Make the warnings issued when building the Ruby bindings *much* less verbose.
The removed warnings are the result of swig's---ahem---interesting way of
generating code. Hopefully, this helps us find more errors, more quickly.
* build/ac-macros/swig.m4
(SVN_FIND_SWIG): Filter out a number of compiler warnings flags for the Ruby
bindings.
Modified:
subversion/trunk/build/ac-macros/swig.m4
Modified: subversion/trunk/build/ac-macros/swig.m4
URL:
http://svn.apache.org/viewvc/subversion/trunk/build/ac-macros/swig.m4?rev=1421645&r1=1421644&r2=1421645&view=diff
==============================================================================
--- subversion/trunk/build/ac-macros/swig.m4 (original)
+++ subversion/trunk/build/ac-macros/swig.m4 Fri Dec 14 03:03:52 2012
@@ -214,6 +214,17 @@ AC_DEFUN(SVN_FIND_SWIG,
])
SWIG_RB_COMPILE="$svn_cv_ruby_compile"
+ dnl The swig bindings create a lot of spurious warnings with several of
+ dnl our standard compiler flags, so filter them out here
+ SVN_STRIP_FLAG(SWIG_RB_COMPILE, [-Wall])
+ SVN_STRIP_FLAG(SWIG_RB_COMPILE, [-Wunused])
+ SVN_STRIP_FLAG(SWIG_RB_COMPILE, [-Wshadow])
+ SVN_STRIP_FLAG(SWIG_RB_COMPILE, [-Wstrict-prototypes])
+ SVN_STRIP_FLAG(SWIG_RB_COMPILE, [-Wmissing-declarations])
+ SVN_STRIP_FLAG(SWIG_RB_COMPILE, [-Wmissing-prototypes])
+ SVN_STRIP_FLAG(SWIG_RB_COMPILE, [-Wredundant-decls])
+ SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast"
+
AC_CACHE_CHECK([how to link Ruby extensions], [svn_cv_ruby_link],[
svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \
$rbconfig_LDSHARED`"