This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Warning fix for automake on CVS Libtool


Hello!

This patch eliminates pushing undefined values to an array of suffixes to
be cleaned for texinfo files.

This fixes the warnings automake produces when it's run on the CVS
Libtool sources.

ChangeLog:
	* automake.in (scan_texinfo_file): Don't push undefined values
	to @clean_suffixes.

_______________________
--- automake.in
+++ automake.in
@@ -2596,11 +2596,13 @@
       # Storing in a predefined index.
       elsif (/^\@([cfkvtp])index /)
       {
-        push @clean_suffixes, $predefined_index{$1};
+        push @clean_suffixes, $predefined_index{$1}
+	  if (defined $predefined_index{$1});
       }
       elsif (/^\@def(\w+) /)
       {
-        push @clean_suffixes, $hidden_index{$1};
+        push @clean_suffixes, $hidden_index{$1}
+	  if (defined $hidden_index{$1});
       }

       # Merging an index into an another.
_______________________

-- 
Regards,
Pavel Roskin



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]