Page 1 of 1

TeeChart 8.04 Compiler Warnings in Delphi 2009

Posted: Thu Oct 30, 2008 10:06 am
by 10546890
There are many compiler warnings related to string handling when building and installing TeeChart 8.04 into Delphi 2009.

At least following types of warnings are generated from various places:
Warning: W1044 Suspicious typecast of string to PAnsiChar
Warning: W1050 WideChar reduced to byte char in set expressions. Consider using 'CharInSet' function in 'SysUtils' unit.
Warning: W1057 Implicit string cast from 'AnsiString' to 'string'
Warning: W1058 Implicit string cast with potential data loss from 'string' to 'ShortString'

In light of these we are a bit worried whether some of these signify real remaining issues in string handling. We would gladly see these dealt with as we are preparing the migration to D2009.

Posted: Tue Nov 04, 2008 9:38 am
by narcis
Hi tsiipola,

We haven't found any issue with those warnings so far. Anyway, we will try to enhance this for next releases.

Re: TeeChart 8.04 Compiler Warnings in Delphi 2009

Posted: Wed Sep 16, 2009 7:41 am
by 10546890
These compiler warnings seems to be still present in TeeChart 8.06. It would seem quite unlikely that they would not be associated with any potential problems whatsoever, so I would very gladly see these addressed.

Re: TeeChart 8.04 Compiler Warnings in Delphi 2009

Posted: Wed Nov 18, 2009 2:40 pm
by 10546060
Hi,

I also see many compiler warnings with TeeChart 8.06 and Delphi 2010.
It would be great if they can be removed... I hardly see my own warnings among all these.

Thank you

Code: Select all

[DCC Warnung] TeEngine.pas(8061): W1057 Implizite String-Umwandlung von 'AnsiString' zu 'string'
[DCC Warnung] TeeChartGrid.pas(868): W1057 Implizite String-Umwandlung von 'ShortString' zu 'string'
[DCC Warnung] TeeExport.pas(1165): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'AnsiString'
[DCC Warnung] TeeExport.pas(1178): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'AnsiString'
[DCC Warnung] TeeExport.pas(1196): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'AnsiString'
[DCC Warnung] TeeStore.pas(1243): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'ShortString'
[DCC Warnung] TeeStore.pas(1249): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'ShortString'
[DCC Warnung] TeeStore.pas(1255): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'ShortString'
[DCC Warnung] TeeStore.pas(1261): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'ShortString'
[DCC Warnung] TeeStore.pas(1315): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'ShortString'
[DCC Warnung] TeeStore.pas(1321): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'ShortString'
[DCC Warnung] TeeStore.pas(1408): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'ShortString'
[DCC Warnung] GDIPOBJ.pas(148): W1010 Methode 'Equals' verbirgt virtuelle Methode vom Basistyp 'TObject'
[DCC Warnung] GDIPOBJ.pas(498): W1010 Methode 'Equals' verbirgt virtuelle Methode vom Basistyp 'TObject'
[DCC Warnung] TeeGDIPlus.pas(811): W1000 Symbol 'ByteToCharLen' ist veraltet : 'Use ElementToCharLen.'
[DCC Warnung] TeeRose.pas(451): W1057 Implizite String-Umwandlung von 'ShortString' zu 'string'
[DCC Warnung] TeeURL.pas(151): W1057 Implizite String-Umwandlung von 'AnsiString' zu 'string'
[DCC Warnung] TeeURL.pas(350): W1050 WideChar in Set-Ausdrücken auf ByteChar verkürzt.  Ziehen Sie die Verwendung der Funktion 'CharInSet' aus der Unit 'SysUtils' in Betracht.
[DCC Warnung] TeeURL.pas(372): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'AnsiString'
[DCC Warnung] TeeURL.pas(403): W1057 Implizite String-Umwandlung von 'AnsiString' zu 'string'
[DCC Warnung] TeeURL.pas(404): W1044 Bedenkliche Typumwandlung von string in PAnsiChar
[DCC Warnung] TeeURL.pas(408): W1057 Implizite String-Umwandlung von 'AnsiString' zu 'string'
[DCC Warnung] TeeURL.pas(522): W1044 Bedenkliche Typumwandlung von string in PAnsiChar
[DCC Warnung] TeeURL.pas(620): W1058 Implizite String-Umwandlung mit potenziellem Datenverlust von 'string' zu 'AnsiString'
[DCC Warnung] TeeTranslate.pas(339): W1050 WideChar in Set-Ausdrücken auf ByteChar verkürzt.  Ziehen Sie die Verwendung der Funktion 'CharInSet' aus der Unit 'SysUtils' in Betracht.

Re: TeeChart 8.04 Compiler Warnings in Delphi 2009

Posted: Wed Nov 18, 2009 6:45 pm
by narcis
Hi Timo,

Yes, we are aware of that and we will try to fix as many warnings and hints as possible for next releases.

Re: TeeChart 8.04 Compiler Warnings in Delphi 2009

Posted: Fri Nov 27, 2009 12:28 pm
by narcis
Hi Timo,

I have fixed all warnings possible. I couldn't fix some W1058 because of what's described here:

http://docwiki.embarcadero.com/RADStudi ... 8Delphi%29
http://chee-yang.blogspot.com/2008/10/d ... icode.html