(main): Recover correctly from invalid -Wid-clash option.

From-SVN: r2349
This commit is contained in:
Richard Stallman 1992-10-07 08:03:02 +00:00
parent 173c6344df
commit 7085b87321
1 changed files with 5 additions and 1 deletions

View File

@ -3021,10 +3021,14 @@ main (argc, argv, envp)
if (*endp >= '0' && *endp <= '9')
endp++;
else
error ("Invalid option `%s'", argv[i]);
{
error ("Invalid option `%s'", argv[i]);
goto id_clash_lose;
}
}
warn_id_clash = 1;
id_clash_len = atoi (str + 10);
id_clash_lose: ;
}
else
error ("Invalid option `%s'", argv[i]);