mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-31 09:50:22 +02:00
fcl-passrc: useanalyzer: do not export resourcestrings
git-svn-id: trunk@43310 -
This commit is contained in:
parent
2d20151446
commit
acc72f01a1
@ -1404,7 +1404,10 @@ begin
|
||||
UseVariable(TPasVariable(Decl),rraNone,true);
|
||||
end
|
||||
else if C=TPasResString then
|
||||
UseResourcestring(TPasResString(Decl))
|
||||
begin
|
||||
if OnlyExports then continue;
|
||||
UseResourcestring(TPasResString(Decl));
|
||||
end
|
||||
else if C=TPasAttributes then
|
||||
// attributes are never used directly
|
||||
else
|
||||
|
@ -842,9 +842,9 @@ begin
|
||||
StartProgram(false);
|
||||
Add([
|
||||
'resourcestring',
|
||||
'resourcestring',
|
||||
' {#a_used}a = ''txt'';',
|
||||
' {#b_used}b = ''foo'';',
|
||||
' {#c_notused}c = ''bar'';',
|
||||
'procedure {#DoIt_used}DoIt(s: string);',
|
||||
'var',
|
||||
' {#d_used}d: string;',
|
||||
|
Loading…
Reference in New Issue
Block a user