Page 1 of 1

Very many warnings on compile

Posted: 09.06.2012, 22:50
by ism
http://workism.narod2.ru/text_files/zeos_warnings.txt

Code: Select all

/home/stas/bin/testing-egonhugeist/src/core/ZCompatibility.pas(180,32) Warning: Some fields coming after "ZAlias" weren't initialized
/home/stas/bin/testing-egonhugeist/src/core/ZVariant.pas(618,17) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/core/ZVariant.pas(618,17) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
/home/stas/bin/testing-egonhugeist/src/core/ZVariant.pas(1209,30) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/core/ZVariant.pas(1561,26) Warning: Conversion between ordinals and pointers is not portable
Действие "Компиляция пакета zcore 7.0" завершено
/home/stas/bin/testing-egonhugeist/src/plain/ZPlainDriver.pas(384,38) Warning: Function result variable does not seem to initialized
/home/stas/bin/testing-egonhugeist/src/plain/ZPlainDbLibDriver.pas(2168,31) Warning: use of NEW or DISPOSE for untyped pointers is meaningless
/home/stas/bin/testing-egonhugeist/src/plain/ZPlainDbLibDriver.pas(2177,33) Warning: use of NEW or DISPOSE for untyped pointers is meaningless
/home/stas/bin/testing-egonhugeist/src/plain/ZPlainPostgreSqlDriver.pas(93,38) Note: Values in enumeration types have to be ascending
/home/stas/bin/testing-egonhugeist/src/plain/ZPlainFirebirdDriver.pas(254,15) Warning: An inherited method is hidden by "TZFirebirdBaseDriver.Initialize;"
/home/stas/bin/testing-egonhugeist/src/plain/ZPlainFirebirdDriver.pas(733,13) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/plain/ZPlainFirebirdDriver.pas(1292,35) Warning: Function result does not seem to be set
Действие "Компиляция пакета zplain 7.0" завершено
Действие "Компиляция пакета zparsesql 7.0" завершено
/home/stas/bin/testing-egonhugeist/src/dbc/ZDbcMySqlMetadata.pas(1449,9) Note: Local variable "Database" is assigned but never used
/home/stas/bin/testing-egonhugeist/src/dbc/ZDbcOracleMetadata.pas(1271,10) Note: Local variable "Where" not used
/home/stas/bin/testing-egonhugeist/src/dbc/ZDbcOracleMetadata.pas(1272,5) Note: Local variable "LProcedureNamePattern" is assigned but never used
/home/stas/bin/testing-egonhugeist/src/dbc/ZDbcOracleMetadata.pas(1272,28) Note: Local variable "LColumnNamePattern" not used
/home/stas/bin/testing-egonhugeist/src/dbc/ZDbcOracleMetadata.pas(1273,15) Note: Local variable "SubTypeName" is assigned but never used
/home/stas/bin/testing-egonhugeist/src/dbc/ZDbcOracleMetadata.pas(1281,5) Note: Local variable "bNeedInsertReturns" is assigned but never used
/home/stas/bin/testing-egonhugeist/src/dbc/ZDbcOracle.pas(291,3) Note: Local variable "PrefetchCount" not used
/home/stas/bin/testing-egonhugeist/src/dbc/ZDbcASAUtils.pas(877,3) Note: Local variable "AnsiTmp" is assigned but never used
Действие "Компиляция пакета zdbc 7.0" завершено
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(110,17) Warning: An inherited method is hidden by "constructor TZDataLink.Create(TZAbstractRODataset);"
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(294,15) Note: Virtual method "TZAbstractRODataset.SetFieldData(TField,Pointer,Boolean);" has a lower visibility (protected) than parent class TDataSet (public)
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(296,15) Note: Virtual method "TZAbstractRODataset.SetFieldData(TField,Pointer);" has a lower visibility (protected) than parent class TDataSet (public)
/home/stas/bin/testing-egonhugeist/src/component/ZDatasetUtils.pas(1194,57) Warning: Automatic type conversion from floating type to COMP which is an integer type
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractDataset.pas(373,14) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractDataset.pas(427,25) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractDataset.pas(433,44) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractDataset.pas(505,16) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractDataset.pas(537,14) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractDataset.pas(635,14) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(911,25) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(979,21) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(1026,32) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(1047,16) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(1055,25) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(1058,39) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(1251,14) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(1287,18) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(2437,33) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(2438,33) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(2454,37) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(2493,16) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(2734,18) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(2781,16) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(2860,14) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(2899,14) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(3035,16) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(3082,39) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(3098,13) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(3098,30) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(3098,13) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(3098,30) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(3115,12) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(3128,12) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(3156,35) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZAbstractRODataset.pas(3156,51) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZConnectionGroup.pas(131,7) Note: Local variable "Current" not used
/home/stas/bin/testing-egonhugeist/src/component/ZGroupedConnection.pas(65,3) Note: Local variable "Msg" is assigned but never used
/home/stas/bin/testing-egonhugeist/src/component/ZPropertyEditor.pas(1063,10) Warning: Local variable "DbcConnection" does not seem to be initialized
/home/stas/bin/testing-egonhugeist/src/component/ZPropertyEditor.pas(1058,3) Note: Local variable "Url" is assigned but never used
/home/stas/bin/testing-egonhugeist/src/component/ZUpdateSqlEditor.pas(321,45) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZUpdateSqlEditor.pas(342,43) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZUpdateSqlEditor.pas(524,38) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZUpdateSqlEditor.pas(816,82) Warning: Conversion between ordinals and pointers is not portable
/home/stas/bin/testing-egonhugeist/src/component/ZStoredProcedure.pas(146,5) Warning: Class types "IZCallableStatement" and "TZAbstractCallableStatement" are not related
/home/stas/bin/testing-egonhugeist/src/component/ZStoredProcedure.pas(243,37) Warning: Local variable "FCallableStatement" does not seem to be initialized
/home/stas/bin/testing-egonhugeist/src/component/ZIBEventAlerter.pas(509,9) Warning: Symbol "Resume" is deprecated
/home/stas/bin/testing-egonhugeist/src/component/ZIBEventAlerter.pas(530,3) Note: Local variable "ErrorStr" is assigned but never used
Действие "Компиляция пакета zcomponent 7.0" завершено
Проект "project1" успешно собран

Posted: 09.06.2012, 23:44
by EgonHugeist
ism,

i know about this. Here i don't know if we can supress all of that warnings and hints. This is an issue of a project like Zeos which is usable for all pascal compilers. All compilers have there own kind of handling according these warnings and hints.

I think Zeos was originally made for the Ansi Delphi compilers. If you compile the testing or trunk branches with DelphiXE you'll get over 500 Warnings on Egon are 60 left.

Normaly it should be possible to fix all of them with some {$IFDEF FPC} or for D12_UP around. The question here is: Do we need that really or does Zeos work like expected?

Please feel free to start fixing this warnings and attach the patches.

Michael