mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-29 13:39:13 +02:00
+ be able to turn off warning -> error conversion on the command line (with -)
git-svn-id: trunk@21754 -
This commit is contained in:
parent
7df1403849
commit
3f14f2b61b
@ -512,11 +512,35 @@ implementation
|
||||
i:=j-1;
|
||||
end;
|
||||
'w','W' :
|
||||
status.errorwarning:=true;
|
||||
begin
|
||||
if (i<length(s)) and (s[i+1]='-') then
|
||||
begin
|
||||
inc(i);
|
||||
status.errorwarning:=false;
|
||||
end
|
||||
else
|
||||
status.errorwarning:=true;
|
||||
end;
|
||||
'n','N' :
|
||||
status.errornote:=true;
|
||||
begin
|
||||
if (i<length(s)) and (s[i+1]='-') then
|
||||
begin
|
||||
inc(i);
|
||||
status.errornote:=false;
|
||||
end
|
||||
else
|
||||
status.errornote:=true;
|
||||
end;
|
||||
'h','H' :
|
||||
status.errorhint:=true;
|
||||
begin
|
||||
if (i<length(s)) and (s[i+1]='-') then
|
||||
begin
|
||||
inc(i);
|
||||
status.errorhint:=false;
|
||||
end
|
||||
else
|
||||
status.errorhint:=true;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user