# Avoid compiler hints/warnings

**URL:** https://talk.remobjects.com/t/avoid-compiler-hints-warnings/34340
**Category:** Data Abstract
**Tags:** delphi
**Created:** [November 16, 2026, 1:10pm UTC](https://talk.remobjects.com/t/avoid-compiler-hints-warnings/34340 "2026-11-16T13:10:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![fvancrae](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/f/ad7895/32.png) [@fvancrae](https://talk.remobjects.com/u/fvancrae)
#### Post date: [November 16, 2026, 1:10pm UTC](https://talk.remobjects.com/t/avoid-compiler-hints-warnings/34340/1 "2026-11-16T13:10:52Z")

</div>

A small low prio request for future releases

Please avoid compiler hints and warnings

We get this in our output with build 1629

![image](https://talk.remobjects.com/uploads/default/original/3X/d/f/df9b0a99dc3c9429c2d7b9f3327ab8790ed68a35.png)

 ![image](https://talk.remobjects.com/uploads/default/original/3X/4/c/4c083fb456ee63341a1419575f1de2f12969f92c.png)

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [November 16, 2026, 1:46pm UTC](https://talk.remobjects.com/t/avoid-compiler-hints-warnings/34340/2 "2026-11-16T13:46:29Z")

</div>

> [@fvancrae](#):
>
> We get this in our output with build 1629

Hmm, looks like a compiler bug, since `lFieldCount` _is_ in fact used five lines below?

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [November 16, 2026, 3:46pm UTC](https://talk.remobjects.com/t/avoid-compiler-hints-warnings/34340/3 "2026-11-16T15:46:44Z")

</div>

Hi,

looks like modern compiler wants this method as

```auto
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
