|
@@ -882,25 +882,25 @@ implementation
|
|
if (vo_is_funcret in hsym.varoptions) then
|
|
if (vo_is_funcret in hsym.varoptions) then
|
|
begin
|
|
begin
|
|
if (vsf_use_hints in varstateflags) then
|
|
if (vsf_use_hints in varstateflags) then
|
|
- CGMessage(sym_h_function_result_uninitialized)
|
|
|
|
|
|
+ CGMessagePos(p.fileinfo,sym_h_function_result_uninitialized)
|
|
else
|
|
else
|
|
- CGMessage(sym_w_function_result_uninitialized)
|
|
|
|
|
|
+ CGMessagePos(p.fileinfo,sym_w_function_result_uninitialized)
|
|
end
|
|
end
|
|
else
|
|
else
|
|
begin
|
|
begin
|
|
if tloadnode(p).symtable.symtabletype=localsymtable then
|
|
if tloadnode(p).symtable.symtabletype=localsymtable then
|
|
begin
|
|
begin
|
|
if (vsf_use_hints in varstateflags) then
|
|
if (vsf_use_hints in varstateflags) then
|
|
- CGMessage1(sym_h_uninitialized_local_variable,hsym.realname)
|
|
|
|
|
|
+ CGMessagePos1(p.fileinfo,sym_h_uninitialized_local_variable,hsym.realname)
|
|
else
|
|
else
|
|
- CGMessage1(sym_w_uninitialized_local_variable,hsym.realname);
|
|
|
|
|
|
+ CGMessagePos1(p.fileinfo,sym_w_uninitialized_local_variable,hsym.realname);
|
|
end
|
|
end
|
|
else
|
|
else
|
|
begin
|
|
begin
|
|
if (vsf_use_hints in varstateflags) then
|
|
if (vsf_use_hints in varstateflags) then
|
|
- CGMessage1(sym_h_uninitialized_variable,hsym.realname)
|
|
|
|
|
|
+ CGMessagePos1(p.fileinfo,sym_h_uninitialized_variable,hsym.realname)
|
|
else
|
|
else
|
|
- CGMessage1(sym_w_uninitialized_variable,hsym.realname);
|
|
|
|
|
|
+ CGMessagePos1(p.fileinfo,sym_w_uninitialized_variable,hsym.realname);
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
end
|
|
end
|