summaryrefslogtreecommitdiff
path: root/compiler/aasmcnst.pas
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/aasmcnst.pas')
-rw-r--r--compiler/aasmcnst.pas2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/aasmcnst.pas b/compiler/aasmcnst.pas
index 1f7cc86b09..106abfde2a 100644
--- a/compiler/aasmcnst.pas
+++ b/compiler/aasmcnst.pas
@@ -700,6 +700,8 @@ implementation
function ttai_typedconstbuilder.get_internal_data_section_index(typ: TAsmSectiontype): longint;
begin
+ { avoid wrong warning by -Oodfa }
+ result:=-1;
for result:=low(finternal_data_section_info) to high(finternal_data_section_info) do
if finternal_data_section_info[result].sectype=typ then
exit;