]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* lib/Automake/Variable.pm (_traverse_variable_recursively_worker):
authorAlexandre Duret-Lutz <adl@gnu.org>
Wed, 2 Jul 2003 21:57:51 +0000 (21:57 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Wed, 2 Jul 2003 21:57:51 +0000 (21:57 +0000)
Do not return undef when a variable is recursively defined, this
causes warnings all over the place.  Return the empty string instead.

ChangeLog
lib/Automake/Variable.pm

index 73ae84cbc4d38e45428c9a528a355a4e3b6062d9..e63d4badb0a15a1474d2927c72d19252729485c6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2003-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
 
+       * lib/Automake/Variable.pm (_traverse_variable_recursively_worker):
+       Do not return undef when a variable is recursively defined, this
+       causes warnings all over the place.  Return the empty string instead.
+
        * lib/am/distdir.am (distcheck): Protect loop of DIST_ARCHIVES
        from empty DIST_ARCHIVES.
 
index 1fee8be4d4de150cd1e1693a337ce26646ff2ed8..fd02f5c77d1f055a42a8520ad3f74f7f74029f26 100644 (file)
@@ -1476,7 +1476,7 @@ sub _traverse_variable_recursively_worker ($$&&$$)
   if (defined $_vars_scanned{$var})
     {
       err_var $var, "variable `" . $var->name() . "' recursively defined";
-      return undef;
+      return "";
     }
   $_vars_scanned{$var} = 1;