mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11:29:27 +02:00
* Don't issue "Local variable is assigned but never used" warning for external variables.
git-svn-id: trunk@9538 -
This commit is contained in:
parent
a2daf2e86d
commit
9bca56ac44
@ -583,8 +583,7 @@ implementation
|
||||
end
|
||||
else if (tsym(sym).owner.symtabletype=ObjectSymtable) then
|
||||
MessagePos2(tsym(sym).fileinfo,sym_n_private_identifier_only_set,tsym(sym).owner.realname^,tsym(sym).realname)
|
||||
else if not(vo_is_public in tabstractvarsym(sym).varoptions) and
|
||||
not(vo_is_funcret in tabstractvarsym(sym).varoptions) then
|
||||
else if tabstractvarsym(sym).varoptions*[vo_is_funcret,vo_is_public,vo_is_external]=[] then
|
||||
MessagePos1(tsym(sym).fileinfo,sym_n_local_identifier_only_set,tsym(sym).realname);
|
||||
end
|
||||
else if (tabstractvarsym(sym).varstate = vs_read_not_warned) and
|
||||
|
Loading…
Reference in New Issue
Block a user