* Don't issue "Local variable is assigned but never used" warning for external variables.

git-svn-id: trunk@9538 -
This commit is contained in:
yury 2007-12-26 16:30:45 +00:00
parent a2daf2e86d
commit 9bca56ac44

View File

@ -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