[delphizip] Re: ZipMaster 1.9.0.111 Compiler warnings

  • From: Uli Brueggemann <uli.brueggemann@xxxxxxxxx>
  • To: delphizip@xxxxxxxxxxxxx
  • Date: Sat, 22 Jan 2011 09:54:00 +0100

I use Delphi XE.

It is of course dependent on the compiler settings.
But IMO compiler waning settings make sense. They help to program in a
good style or to avoid faults.
So I always try to get a compilation without warnings.

Uli

On Sat, Jan 22, 2011 at 8:35 AM, R Peters <rpeters@xxxxxxxxxxxxx> wrote:
> What Delphi version are you using?
> I imagine the warnings are being generated because of the default compiler
> warning settings you are using.
> That said, I will check each warning to see if I can convince the compiler
> that they are safe but unfortunately this is difficult over the range of
> Delphi versions supported.
> Russell Peters
>
> On Sat, Jan 22, 2011 at 6:26 PM, Uli Brueggemann
> <uli.brueggemann@xxxxxxxxx>wrote:
>
>> Hi,
>>
>> ZipMaster generates the attached compiler warnings.
>> Are they really necessary?
>>
>> Regards
>> Uli
>>
>> [DCC Warning] ZMStructs19.pas(411): W1046 Unsafe type '<anonymous record>'
>> [DCC Warning] ZMStructs19.pas(418): W1046 Unsafe type '<anonymous record>'
>> [DCC Warning] ZMStructs19.pas(605): W1046 Unsafe type '<anonymous record>'
>> [DCC Warning] ZMStructs19.pas(612): W1046 Unsafe type '<anonymous record>'
>> [DCC Warning] ZMCompat19.pas(124): W1060 Explicit string cast with
>> potential data loss from 'string' to 'AnsiString'
>> [DCC Warning] ZMUtils19.pas(180): W1046 Unsafe type 'TInt64Rec'
>> [DCC Warning] ZMUtils19.pas(474): W1048 Unsafe typecast of 'Cardinal'
>> to 'LongRec'
>> [DCC Warning] ZMUtils19.pas(475): W1048 Unsafe typecast of 'Cardinal'
>> to 'LongRec'
>> [DCC Warning] ZMUtils19.pas(930): W1048 Unsafe typecast of 'Cardinal'
>> to 'LongRec'
>> [DCC Warning] ZMUtils19.pas(1133): W1059 Explicit string cast from
>> 'AnsiString' to 'string'
>> [DCC Warning] ZMUtils19.pas(1444): W1059 Explicit string cast from
>> 'AnsiString' to 'string'
>> [DCC Warning] ZMUtils19.pas(1454): W1059 Explicit string cast from
>> 'AnsiString' to 'string'
>> [DCC Warning] ZMUtils19.pas(1508): W1048 Unsafe typecast of 'Integer'
>> to 'LongRec'
>> [DCC Warning] ZMUtils19.pas(1508): W1048 Unsafe typecast of 'Integer'
>> to 'LongRec'
>> [DCC Warning] ZMDlg19.pas(354): W1048 Unsafe typecast of 'TPoint' to
>> 'tagSIZE'
>> [DCC Warning] ZipMstr19.pas(1675): W1059 Explicit string cast from
>> 'AnsiString' to 'string'
>> [DCC Warning] ZipMstr19.pas(2184): W1060 Explicit string cast with
>> potential data loss from 'string' to 'AnsiString'
>> [DCC Warning] ZMMsgStr19.pas(261): W1059 Explicit string cast from
>> 'AnsiString' to 'string'
>> [DCC Warning] ZMMsgStr19.pas(306): W1060 Explicit string cast with
>> potential data loss from 'string' to 'AnsiString'
>> [DCC Warning] ZMMsgStr19.pas(329): W1059 Explicit string cast from
>> 'AnsiString' to 'string'
>> [DCC Warning] ZMMsgStr19.pas(365): W1059 Explicit string cast from
>> 'AnsiString' to 'string'
>> [DCC Warning] ZMCore19.pas(1418): W1048 Unsafe typecast of 'Pointer'
>> to 'TObject'
>> [DCC Warning] ZMCore19.pas(1420): W1048 Unsafe typecast of 'Pointer'
>> to 'TZMPipeImp'
>> [DCC Warning] ZMCore19.pas(1442): W1048 Unsafe typecast of 'Pointer'
>> to 'TObject'
>> [DCC Warning] ZMCore19.pas(1448): W1048 Unsafe typecast of 'Pointer'
>> to 'TZMPipeImp'
>> [DCC Warning] ZMCore19.pas(1491): W1048 Unsafe typecast of 'Pointer'
>> to 'TObject'
>> [DCC Warning] ZMCore19.pas(1495): W1048 Unsafe typecast of 'Pointer'
>> to 'TZMPipeImp'
>> [DCC Warning] ZMUTF819.pas(358): W1059 Explicit string cast from
>> 'string' to 'UTF8String'
>> [DCC Warning] ZMUTF819.pas(395): W1059 Explicit string cast from
>> 'AnsiString' to 'string'
>> [DCC Warning] ZMUTF819.pas(454): W1060 Explicit string cast with
>> potential data loss from 'string' to 'AnsiString'
>> [DCC Warning] ZMIRec19.pas(954): W1059 Explicit string cast from
>> 'RawByteString' to 'string'
>> [DCC Warning] ZMIRec19.pas(1500): W1059 Explicit string cast from
>> 'string' to 'UTF8String'
>> [DCC Warning] ZMIRec19.pas(1512): W1059 Explicit string cast from
>> 'string' to 'UTF8String'
>> [DCC Warning] ZMZipFile19.pas(867): W1048 Unsafe typecast of 'Pointer'
>> to 'TZMIRec'
>> [DCC Warning] ZMZipFile19.pas(892): W1048 Unsafe typecast of 'Pointer'
>> to 'TZMIRec'
>> [DCC Warning] ZMCendir19.pas(259): W1048 Unsafe typecast of 'Pointer'
>> to 'TZMCentralEntry'
>> [DCC Warning] ZMWAUX19.pas(2239): W1059 Explicit string cast from
>> 'AnsiString' to 'string'
>> [DCC Warning] ZMWAUX19.pas(2240): W1059 Explicit string cast from
>> 'AnsiString' to 'string'
>> [DCC Warning] ZMWAUX19.pas(2241): W1059 Explicit string cast from
>> 'AnsiString' to 'string'
>> [DCC Warning] ZMWAUX19.pas(2242): W1059 Explicit string cast from
>> 'AnsiString' to 'string'
>> [DCC Warning] ZMWAUX19.pas(2243): W1059 Explicit string cast from
>> 'AnsiString' to 'string'
>> [DCC Warning] ZMDLLOpr19.pas(218): W1048 Unsafe typecast of 'Pointer'
>> to 'TObject'
>> [DCC Warning] ZMDLLOpr19.pas(239): W1048 Unsafe typecast of 'Pointer'
>> to 'TObject'
>> [DCC Warning] ZMDLLOpr19.pas(247): W1048 Unsafe typecast of 'Pointer'
>> to 'TObject'
>> [DCC Warning] ZMDLLOpr19.pas(254): W1048 Unsafe typecast of 'Pointer'
>> to 'TObject'
>> [DCC Warning] ZMDLLOpr19.pas(264): W1048 Unsafe typecast of 'Pointer'
>> to 'TObject'
>> [DCC Warning] ZMDLLOpr19.pas(654): W1048 Unsafe typecast of 'Pointer'
>> to 'TObject'
>> [DCC Warning] ZMDLLOpr19.pas(656): W1048 Unsafe typecast of 'Pointer'
>> to 'TStream'
>> [DCC Warning] ZMDLLOpr19.pas(2087): W1048 Unsafe typecast of 'Pointer'
>> to 'TObject'
>> [DCC Warning] ZMDLLLoad19.pas(206): W1059 Explicit string cast from
>> 'AnsiString' to 'string'
>> [DCC Warning] ZMDLLLoad19.pas(669): W1059 Explicit string cast from
>> 'AnsiString' to 'string'
>> -----------
>> To unsubscribe from this list, send an empty e-mail
>> message to:
>>  delphizip-request@xxxxxxxxxxxxx
>> and put the word unsubscribe in the subject.
>>
>
>
> -----------
> To unsubscribe from this list, send an empty e-mail
> message to:
>  delphizip-request@xxxxxxxxxxxxx
> and put the word unsubscribe in the subject.
>
-----------
To unsubscribe from this list, send an empty e-mail 
message to:
  delphizip-request@xxxxxxxxxxxxx 
and put the word unsubscribe in the subject.

Other related posts: