On 27-9-2010 13:30, Sven Barth wrote:
> Am 27.09.2010 10:38, schrieb Honza:
>> 2010/9/27 Jim:
>>> As TIfdTag seems to contain non-pointer records only, I thought I could
>>> use Sizeof and tried this:
>>> FillByte(tag, SizeOf(tag), 0); //initialize var.
>>> The compiler warning doesn't go away thou
> You can probably work around the problem for now by going to line 1448
> of compiler/ptconst.pas and changing
>
> if sym.varspez=vs_const then
>cursectype:=sec_rodata
> else
>cursectype:=sec_data;
>
> into
>
> cursectype:=sec_data;
Hm, it
Sven Barth schrieb:
It's enough code, because FillByte (and others) are defined with a "var"
parameter and such the hint (not a warning) won't go away.
It's an old topic already and we have just to live with it (regarding
the Fill* functions). ^^
But why not simply change the definition of the
2010/9/28 Jürgen Hestermann :
> Sven Barth schrieb:
>>
>> It's enough code, because FillByte (and others) are defined with a "var"
>> parameter and such the hint (not a warning) won't go away.
>> It's an old topic already and we have just to live with it (regarding the
>> Fill* functions). ^^
>
> B