From: Alexandre Duret-Lutz Date: Wed, 2 Jul 2003 21:57:51 +0000 (+0000) Subject: * lib/Automake/Variable.pm (_traverse_variable_recursively_worker): X-Git-Tag: Release-1-7b~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21af290f859650897307e6cc74cac16bd5d019ad;p=thirdparty%2Fautomake.git * 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. --- diff --git a/ChangeLog b/ChangeLog index 73ae84cbc..e63d4badb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2003-07-02 Alexandre Duret-Lutz + * 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. diff --git a/lib/Automake/Variable.pm b/lib/Automake/Variable.pm index 1fee8be4d..fd02f5c77 100644 --- a/lib/Automake/Variable.pm +++ b/lib/Automake/Variable.pm @@ -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;