From: Tim Magill Date: Mon, 21 Feb 2000 02:02:58 +0000 (+0000) Subject: removed essentially unused variable from update_goal_chain X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=0d621b06274ce46b915a8c9f9b353a515feaf50d;p=thirdparty%2Fmake.git removed essentially unused variable from update_goal_chain --- diff --git a/ChangeLog b/ChangeLog index 6671f3fb..bf6097d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-02-20 Tim Magill + + * remake.c (update_goal_chain): removed variable + ocommands_started, it was essentially unused. + 2000-02-12 Tim Magill * remake.c (update_file_1): diff --git a/remake.c b/remake.c index 2d25d901..34650fe1 100644 --- 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