Page 1 of 1

TeeChart v8.07 Delphi 2010 Compiler Warnings

Posted: Fri Jun 11, 2010 9:30 am
by 10548170
Hello Steema,

when compiling our projects in Delphi 2010 we get compiler warnings from different TeeChart units:

Code: Select all

Building Project1.dproj (Debug configuration)
[DCC Warning] TeeExport.pas(1165): W1058 Implicit string cast with potential data loss from 'string' to 'AnsiString'
[DCC Warning] TeeExport.pas(1178): W1058 Implicit string cast with potential data loss from 'string' to 'AnsiString'
[DCC Warning] TeeExport.pas(1196): W1058 Implicit string cast with potential data loss from 'string' to 'AnsiString'
[DCC Warning] TeeStore.pas(1262): W1058 Implicit string cast with potential data loss from 'string' to 'ShortString'
[DCC Warning] TeeStore.pas(1268): W1058 Implicit string cast with potential data loss from 'string' to 'ShortString'
[DCC Warning] TeeStore.pas(1274): W1058 Implicit string cast with potential data loss from 'string' to 'ShortString'
[DCC Warning] TeeStore.pas(1280): W1058 Implicit string cast with potential data loss from 'string' to 'ShortString'
[DCC Warning] TeeStore.pas(1334): W1058 Implicit string cast with potential data loss from 'string' to 'ShortString'
[DCC Warning] TeeStore.pas(1340): W1058 Implicit string cast with potential data loss from 'string' to 'ShortString'
[DCC Warning] TeeStore.pas(1427): W1058 Implicit string cast with potential data loss from 'string' to 'ShortString'
...
Of cause we just could turn off the warnings for the project but our automated building processes will always stop as a result of these warnings.
Could you please eliminate these warnings and let us know about a new release of TeeChart?

Thanks in advance,

Tom Mueller

Re: TeeChart v8.07 Delphi 2010 Compiler Warnings

Posted: Fri Jun 11, 2010 9:53 am
by narcis
Hi Tom,

Please read this thread where this issue was already discussed.

Thanks in advance.

Re: TeeChart v8.07 Delphi 2010 Compiler Warnings

Posted: Fri Jun 11, 2010 10:24 am
by 10548170
Hi Narcís

Thanks for the fast replay.
In the thread you mention you finally write:
I have fixed all warnings possible. I couldn't fix some W1058 because of what's described here:
So, you mention that the W1058 warnings will stay forever?
I can not do anything to avoid this warnings - except turning it off for the hole project. But I need the warnings for my project units.
My suggestion is that you do an explicit string typecast or put a {$WARNINGS OFF} into the Tee* units that causes the W1058 warnings.

What do you think?

Best regards,
Tom

Re: TeeChart v8.07 Delphi 2010 Compiler Warnings

Posted: Fri Jun 11, 2010 10:31 am
by narcis
Hi Tom,
So, you mention that the W1058 warnings will stay forever?
No, I'm not saying that. However, I think that fixing them at the present moment would break TeeChart translations that relay on Unicode characters.
I can not do anything to avoid this warnings - except turning it off for the hole project. But I need the warnings for my project units.
My suggestion is that you do an explicit string typecast or put a {$WARNINGS OFF} into the Tee* units that causes the W1058 warnings.
Ok, I have added your request to the wish-list to be considered for future releases.

Re: TeeChart v8.07 Delphi 2010 Compiler Warnings

Posted: Fri Jun 11, 2010 10:32 am
by narcis
Hi Tom,
So, you mention that the W1058 warnings will stay forever?
No, I'm not saying that. However, I think that fixing them at the present moment would break TeeChart translations that relay on Unicode characters.
I can not do anything to avoid this warnings - except turning it off for the hole project. But I need the warnings for my project units.
My suggestion is that you do an explicit string typecast or put a {$WARNINGS OFF} into the Tee* units that causes the W1058 warnings.
Ok, I have added your request to the wish-list to be considered for future releases. This may "silent" other kind of warnings though :shock:.

Re: TeeChart v8.07 Delphi 2010 Compiler Warnings

Posted: Fri Jun 11, 2010 10:33 am
by 10548170
Hi Narcís

Thank you. In the meantime I will do the explicit typecast in the two units (TeeExport and TeeStore).

Best regards,
Tom