diff mbox

libtool -- don't print warnings with --silent

Message ID 20110709230331.GA3338@hiauly1.hia.nrc.ca
State New
Headers show

Commit Message

John David Anglin July 9, 2011, 11:03 p.m. UTC
The attached patch fixes the boehm-gc testsuite on hppa2.0w-hp-hpux11.11.
Without it, libtool always generates an informational warning when linking
causing the entire boehm-gc testsuite to fail.

Ok?  Ralf would you please install in libtool tree if ok.

2011-07-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	PR boehm-gc/48494
	* ltmain.sh (func_warning): Don't print warnings if opt_silent is true.


Dave

Comments

John David Anglin July 30, 2011, 12:55 a.m. UTC | #1
Ping?

On 9-Jul-11, at 7:03 PM, John David Anglin wrote:

> The attached patch fixes the boehm-gc testsuite on hppa2.0w-hp- 
> hpux11.11.
> Without it, libtool always generates an informational warning when  
> linking
> causing the entire boehm-gc testsuite to fail.
>
> Ok?  Ralf would you please install in libtool tree if ok.
>
> 2011-07-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
>
> 	PR boehm-gc/48494
> 	* ltmain.sh (func_warning): Don't print warnings if opt_silent is  
> true.
>
> Index: ltmain.sh
> ===================================================================
> --- ltmain.sh	(revision 176045)
> +++ ltmain.sh	(working copy)
> @@ -437,7 +437,9 @@
> # Echo program name prefixed warning message to standard error.
> func_warning ()
> {
> -    $opt_warning && $ECHO "$progname${mode+: }$mode: warning:  
> "${1+"$@"} 1>&2
> +    ${opt_silent-false} || {
> +      $opt_warning && $ECHO "$progname${mode+: }$mode: warning:  
> "${1+"$@"} 1>&2
> +    }
>
>     # bash bug again:
>     :
>
> Dave
> -- 
> J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
> National Research Council of Canada              (613) 990-0752  
> (FAX: 952-6602)
diff mbox

Patch

Index: ltmain.sh
===================================================================
--- ltmain.sh	(revision 176045)
+++ ltmain.sh	(working copy)
@@ -437,7 +437,9 @@ 
 # Echo program name prefixed warning message to standard error.
 func_warning ()
 {
-    $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
+    ${opt_silent-false} || {
+      $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
+    }
 
     # bash bug again:
     :