automake-patches
[Top][All Lists]
Advanced

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

FYI: fix undefined variables warnings in @cond_stack handling


From: Alexandre Duret-Lutz
Subject: FYI: fix undefined variables warnings in @cond_stack handling
Date: Thu, 03 Jul 2003 00:20:23 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

I'm checking this in.  Warnings were visible with tests/else.test.

2003-07-03  Alexandre Duret-Lutz  <address@hidden>

        * automake.in (cond_stack_else): Return FALSE if `if' was not
        used.
        (cond_stack_endif): Return TRUE if `if' was not used.  Do not
        display $negate and $cond, they are irrelevant and maybe undefined.

Index: automake.in
===================================================================
RCS file: /cvs/automake/automake/automake.in,v
retrieving revision 1.1472
diff -u -r1.1472 automake.in
--- automake.in 1 Jul 2003 21:25:38 -0000       1.1472
+++ automake.in 2 Jul 2003 22:19:02 -0000
@@ -5435,7 +5435,7 @@
   if (! @cond_stack)
     {
       error $where, "else without if";
-      return;
+      return FALSE;
     }
 
   $cond_stack[$#cond_stack] =
@@ -5465,8 +5465,8 @@
 
   if (! @cond_stack)
     {
-      error $where, "endif without if: $negate$cond";
-      return;
+      error $where, "endif without if";
+      return TRUE;
     }
 
   # If $COND is given, check against it.

-- 
Alexandre Duret-Lutz





reply via email to

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