summaryrefslogtreecommitdiff
path: root/remake.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2009-09-12 21:28:33 +0000
committerPaul Smith <psmith@gnu.org>2009-09-12 21:28:33 +0000
commit958ea92eb8cf7eeb5af6752805d94b5ae3db99f9 (patch)
tree4e06d890becb39ac22afade3714e31681ac9dcec /remake.c
parent70c726c875f97ca5f3e46e4cfab7af9649f13023 (diff)
downloadgunmake-958ea92eb8cf7eeb5af6752805d94b5ae3db99f9.tar.gz
- Fix Savannah bug #21824: don't loop through NULL cmds pointer
- Fix Savannah bugs #24509, 18963: doc enhancements
Diffstat (limited to 'remake.c')
-rw-r--r--remake.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/remake.c b/remake.c
index 4a4fb73..4cf8bd7 100644
--- a/remake.c
+++ b/remake.c
@@ -82,7 +82,6 @@ int
update_goal_chain (struct dep *goals)
{
int t = touch_flag, q = question_flag, n = just_print_flag;
- unsigned int j = job_slots;
int status = -1;
#define MTIME(file) (rebuilding_makefiles ? file_mtime_no_search (file) \
@@ -263,7 +262,6 @@ update_goal_chain (struct dep *goals)
touch_flag = t;
question_flag = q;
just_print_flag = n;
- job_slots = j;
}
return status;
@@ -872,7 +870,7 @@ notice_finished_file (struct file *file)
really check the target's mtime again. Otherwise, assume the target
would have been updated. */
- if (question_flag || just_print_flag || touch_flag)
+ if (question_flag || just_print_flag || touch_flag && file->cmds != 0)
{
for (i = file->cmds->ncommand_lines; i > 0; --i)
if (! (file->cmds->lines_flags[i-1] & COMMANDS_RECURSE))