(main): Handle 1 and 2 returns from update_goal_chain makefile run

properly.
This commit is contained in:
Roland McGrath 1995-03-24 23:27:05 +00:00
parent 3a12be3a73
commit bdbe8501c6

7
main.c
View File

@ -923,14 +923,17 @@ main (argc, argv, envp)
switch (update_goal_chain (read_makefiles, 1)) switch (update_goal_chain (read_makefiles, 1))
{ {
case 1:
assert ("Status indicates -q set while remaking makefiles!");
default: default:
abort (); assert ("bogus status from update_goal_chain");
break;
case -1: case -1:
/* Did nothing. */ /* Did nothing. */
break; break;
case 1: case 2:
/* Failed to update. Figure out if we care. */ /* Failed to update. Figure out if we care. */
{ {
/* Nonzero if any makefile was successfully remade. */ /* Nonzero if any makefile was successfully remade. */