automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix more duplicate message prefixes.


From: Ralf Wildenhues
Subject: Fix more duplicate message prefixes.
Date: Sun, 25 Apr 2010 19:06:04 +0200
User-agent: Mutt/1.5.20 (2009-10-28)

I missed a couple of duplicate message prefixes in the 2010-04-11
changes to master.  Fixing thusly.

Cheers,
Ralf

    Fix more duplicate message prefixes.
    
    * lib/Automake/XFile.pm (seek): Do not prepend $me.
    ($me): Remove now-unused package-global.
    * aclocal.in (check_acinclude): Remove duplicate 'warning: '
    prefix.

diff --git a/aclocal.in b/aclocal.in
index 9622711..c229367 100644
--- a/aclocal.in
+++ b/aclocal.in
@@ -183,8 +183,7 @@ sub check_acinclude ()
   foreach my $key (keys %map)
     {
       # FIXME: should print line number of acinclude.m4.
-      msg ('syntax', "warning: macro `$key' defined in "
-          . "acinclude.m4 but never used")
+      msg ('syntax', "macro `$key' defined in acinclude.m4 but never used")
        if $map{$key} eq 'acinclude.m4' && ! exists $macro_seen{$key};
     }
 }
diff --git a/lib/Automake/XFile.pm b/lib/Automake/XFile.pm
index a7bb219..67298f9 100644
--- a/lib/Automake/XFile.pm
+++ b/lib/Automake/XFile.pm
@@ -98,9 +98,6 @@ eval {
   push (@EXPORT, @O);
 };
 
-# Used in croak error messages.
-my $me = basename ($0);
-
 =head2 Methods
 
 =over
@@ -267,7 +264,7 @@ sub seek
   if (!seek ($fh, $_[0], $_[1]))
     {
       my $file = $fh->name;
-      fatal "$me: cannot rewind $file with @_: $!";
+      fatal "cannot rewind $file with @_: $!";
     }
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]