From 958ea92eb8cf7eeb5af6752805d94b5ae3db99f9 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 12 Sep 2009 21:28:33 +0000 Subject: - Fix Savannah bug #21824: don't loop through NULL cmds pointer - Fix Savannah bugs #24509, 18963: doc enhancements --- remake.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'remake.c') 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)) -- cgit v1.2.3