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

login
register
mail settings
Submitter John David Anglin
Date July 9, 2011, 11:03 p.m.
Message ID <20110709230331.GA3338@hiauly1.hia.nrc.ca>
Download mbox | patch
Permalink /patch/104038/
State New
Headers show

Comments

John David Anglin - July 9, 2011, 11:03 p.m.
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
John David Anglin - July 30, 2011, 12:55 a.m.
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)

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:
     :