A small low prio request for future releases
Please avoid compiler hints and warnings
We get this in our output with build 1629
![]()
Hmm, looks like a compiler bug, since lFieldCount is in fact used five lines below?
Hi,
looks like modern compiler wants this method as
function TDAMemoryDataset.CompareValues_Range(buf: PMemDatasetrecord_Native; keybuffer: PMemKeyBuffer): Integer;
var
lFieldCount: Integer;
begin
if f_DefaultIndexRecord.IndexFieldNameList.Count >= keybuffer^.FieldCount then begin
lFieldCount := keybuffer^.FieldCount
end
else begin
{$IFDEF CHECK_RANGE}
DatabaseError(err_ErrorDuringApplyingRange);
{$ELSE}
lFieldCount := f_DefaultIndexRecord.IndexFieldNameList.Count;
{$ENDIF CHECK_RANGE}
end;
Result := DoCompare(buf^.Data, keybuffer.Data, lFieldCount);
end;
update fixed