TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
-
tmueller
- Newbie
- Posts: 5
- Joined: Thu Jan 31, 2008 12:00 am
Post
by 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
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by Narcís » Fri Jun 11, 2010 9:53 am
Hi Tom,
Please read
this thread where this issue was already discussed.
Thanks in advance.
-
tmueller
- Newbie
- Posts: 5
- Joined: Thu Jan 31, 2008 12:00 am
Post
by 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
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by 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.
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by 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
.
-
tmueller
- Newbie
- Posts: 5
- Joined: Thu Jan 31, 2008 12:00 am
Post
by 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