]> git.ipfire.org Git - thirdparty/make.git/commitdiff
removed essentially unused variable from update_goal_chain
authorTim Magill <magill@gate.net>
Mon, 21 Feb 2000 02:02:58 +0000 (02:02 +0000)
committerTim Magill <magill@gate.net>
Mon, 21 Feb 2000 02:02:58 +0000 (02:02 +0000)
ChangeLog
remake.c

index 6671f3fba70adaf76ffbc76f17558fce3f175312..bf6097d4287c7b4d548dc043952d890453580aea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-02-20  Tim Magill  <magill@gate.net>
+
+       * remake.c (update_goal_chain): removed variable
+       ocommands_started, it was essentially unused.
+
 2000-02-12  Tim Magill  <magill@gate.net>
 
        * remake.c (update_file_1): 
index 2d25d901867245bfac6ebca26128470afc45b18e..34650fe185e9291c7e97fdb2b05ad67e0d67b71f 100644 (file)
--- a/remake.c
+++ b/remake.c
@@ -123,7 +123,6 @@ update_goal_chain (goals, makefiles)
               file != NULL;
               file = file->prev)
            {
-             unsigned int ocommands_started;
              int x;
              check_renamed (file);
              if (makefiles)
@@ -138,10 +137,7 @@ update_goal_chain (goals, makefiles)
                    touch_flag = question_flag = just_print_flag = 0;
                }
 
-             /* Save the old value of `commands_started' so we can compare
-                later.  It will be incremented when any commands are
-                actually run.  */
-             ocommands_started = commands_started;
+             commands_started = 0;
 
              x = update_file (file, makefiles ? 1 : 0);
              check_renamed (file);
@@ -149,7 +145,7 @@ update_goal_chain (goals, makefiles)
              /* Set the goal's `changed' flag if any commands were started
                 by calling update_file above.  We check this flag below to
                 decide when to give an "up to date" diagnostic.  */
-             g->changed += commands_started - ocommands_started;
+             g->changed |= commands_started ? 1 : 0;
 
               /* If we updated a file and STATUS was not already 1, set it to
                  1 if updating failed, or to 0 if updating succeeded.  Leave