On 09/01/2011 06:51 PM, Peter O'Gorman wrote:
Though I am sorely tempted to simply delete those warnings altogether, I
think the --no-warn option is better.
I'll give you a day to veto this patch, if you don't then I will commit
on Saturday. It essentially copies the --no-warn flag from libtoolize to
libtool.
I pushed this patch on Saturday.
Dave, I've attached an approximation of what the patch would do to gcc's
ltmain.sh and an addition to boehm-gc's .exp file. Both completely
untested, of course :-)
Thanks,
Peter
Index: ltmain.sh
===================================================================
--- ltmain.sh (revision 178501)
+++ ltmain.sh (working copy)
@@ -43,6 +43,7 @@
# --quiet, --silent don't print informational messages
# --no-quiet, --no-silent
# print informational messages (default)
+# --no-warn don't display warning messages
# --tag=TAG use configuration variables from tag TAG
# -v, --verbose print more informational messages than default
# --no-verbose don't print the extra informational messages
@@ -944,6 +945,11 @@
opt_verbose=:
;;
+ --no-warning|--no-warn)
+ preserve_args="$preserve_args $opt"
+ opt_warning=false
+ ;;
+
--no-verbose) preserve_args="$preserve_args $opt"
opt_verbose=false
;;
Index: boehm-gc/testsuite/lib/boehm-gc.exp
===================================================================
--- boehm-gc/testsuite/lib/boehm-gc.exp (revision 178501)
+++ boehm-gc/testsuite/lib/boehm-gc.exp (working copy)
@@ -208,8 +208,8 @@
# Set this once for reuse in boehm-gc.lib/lib.exp.
set libtool "../libtool"
# We have to run silently to avoid DejaGnu lossage.
- lappend options "compiler=$libtool --silent --tag=CC --mode=$mode \
- $GCC_UNDER_TEST"
+ lappend options "compiler=$libtool --silent --no-warn --tag=CC \
+ --mode=$mode $GCC_UNDER_TEST"
lappend options "additional_flags=-I${gc_include} -I${srcdir}/../include"
lappend options "additional_flags=${threadcflags}"