(main): Recover correctly from invalid -Wid-clash option.
From-SVN: r2349
This commit is contained in:
parent
173c6344df
commit
7085b87321
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue