mirror of
https://github.com/mirror/make.git
synced 2025-02-28 21:00:47 +08:00
removed essentially unused variable from update_goal_chain
This commit is contained in:
parent
5ed230d3f8
commit
0d621b0627
@ -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>
|
2000-02-12 Tim Magill <magill@gate.net>
|
||||||
|
|
||||||
* remake.c (update_file_1):
|
* remake.c (update_file_1):
|
||||||
|
8
remake.c
8
remake.c
@ -123,7 +123,6 @@ update_goal_chain (goals, makefiles)
|
|||||||
file != NULL;
|
file != NULL;
|
||||||
file = file->prev)
|
file = file->prev)
|
||||||
{
|
{
|
||||||
unsigned int ocommands_started;
|
|
||||||
int x;
|
int x;
|
||||||
check_renamed (file);
|
check_renamed (file);
|
||||||
if (makefiles)
|
if (makefiles)
|
||||||
@ -138,10 +137,7 @@ update_goal_chain (goals, makefiles)
|
|||||||
touch_flag = question_flag = just_print_flag = 0;
|
touch_flag = question_flag = just_print_flag = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Save the old value of `commands_started' so we can compare
|
commands_started = 0;
|
||||||
later. It will be incremented when any commands are
|
|
||||||
actually run. */
|
|
||||||
ocommands_started = commands_started;
|
|
||||||
|
|
||||||
x = update_file (file, makefiles ? 1 : 0);
|
x = update_file (file, makefiles ? 1 : 0);
|
||||||
check_renamed (file);
|
check_renamed (file);
|
||||||
@ -149,7 +145,7 @@ update_goal_chain (goals, makefiles)
|
|||||||
/* Set the goal's `changed' flag if any commands were started
|
/* Set the goal's `changed' flag if any commands were started
|
||||||
by calling update_file above. We check this flag below to
|
by calling update_file above. We check this flag below to
|
||||||
decide when to give an "up to date" diagnostic. */
|
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
|
/* 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
|
1 if updating failed, or to 0 if updating succeeded. Leave
|
||||||
|
Loading…
Reference in New Issue
Block a user