TeeChart v8.07 Delphi 2010 Compiler Warnings

TeeChart VCL / CLX for Borland Delphi, C++ Builder and Kylix.

TeeChart v8.07 Delphi 2010 Compiler Warnings

Postby tmueller » Fri Jun 11, 2010 9:30 am

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
tmueller
Newbie
Newbie
 
Posts: 5
Joined: Thu Jan 31, 2008 12:00 am

Re: TeeChart v8.07 Delphi 2010 Compiler Warnings

Postby Narcís » Fri Jun 11, 2010 9:53 am

Hi Tom,

Please read this thread where this issue was already discussed.

Thanks in advance.
Best Regards,

Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum
Narcís
Site Admin
Site Admin
 
Posts: 14415
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia

Re: TeeChart v8.07 Delphi 2010 Compiler Warnings

Postby tmueller » Fri Jun 11, 2010 10:24 am

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
tmueller
Newbie
Newbie
 
Posts: 5
Joined: Thu Jan 31, 2008 12:00 am

Re: TeeChart v8.07 Delphi 2010 Compiler Warnings

Postby Narcís » Fri Jun 11, 2010 10:31 am

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.
Best Regards,

Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum
Narcís
Site Admin
Site Admin
 
Posts: 14415
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia

Re: TeeChart v8.07 Delphi 2010 Compiler Warnings

Postby Narcís » Fri Jun 11, 2010 10:32 am

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:.
Best Regards,

Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum
Narcís
Site Admin
Site Admin
 
Posts: 14415
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia

Re: TeeChart v8.07 Delphi 2010 Compiler Warnings

Postby tmueller » Fri Jun 11, 2010 10:33 am

Hi Narcís

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

Best regards,
Tom
tmueller
Newbie
Newbie
 
Posts: 5
Joined: Thu Jan 31, 2008 12:00 am


Return to VCL / CLX

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron