Request: Solve all warning and hints on build project

Freature requests from users for ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist, mdaems

Post Reply
Faceker
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: 04.10.2008, 14:56

Request: Solve all warning and hints on build project

Post by Faceker »

please, :lol:

[DCC Warning] ZGenericSqlAnalyser.pas(637): H2077 Value assigned to 'CurrentType' never used
[DCC Warning] ZDbcMetadata.pas(2628): H2164 Variable 'IndexName' is declared but never used in 'TZAbstractDatabaseMetadata.GetBestRowIdentifier'
[DCC Warning] ZDbcMetadata.pas(2629): H2164 Variable 'ColumnNames' is declared but never used in 'TZAbstractDatabaseMetadata.GetBestRowIdentifier'
[DCC Warning] ZDbcMetadata.pas(3371): H2164 Variable 'Key' is declared but never used in 'TZAbstractDatabaseMetadata.UncachedGetCrossReference'
[DCC Warning] ZDbcConnection.pas(763): W1035 Return value of function 'TZAbstractConnection.PingServer' might be undefined
[DCC Warning] ZDbcAdoMetaData.pas(85): H2365 Override method TZAdoDatabaseMetadata.UncachedGetSchemas should match case of ancestor TZAbstractDatabaseMetadata.UnCachedGetSchemas
[DCC Warning] ZDbcDbLibMsSqlMetadata.pas(75): H2365 Override method TZMsSqlDatabaseMetadata.UncachedGetSchemas should match case of ancestor TZAbstractDatabaseMetadata.UnCachedGetSchemas
[DCC Warning] ZDbcDbLibSybaseMetadata.pas(75): H2365 Override method TZSybaseDatabaseMetadata.UncachedGetSchemas should match case of ancestor TZAbstractDatabaseMetadata.UnCachedGetSchemas
[DCC Warning] ZDbcMySqlResultSet.pas(941): H2164 Variable 'Statement' is declared but never used in 'TZMySQLCachedResolver.UpdateAutoIncrementFields'
[DCC Warning] ZDbcMySqlResultSet.pas(942): H2164 Variable 'ResultSet' is declared but never used in 'TZMySQLCachedResolver.UpdateAutoIncrementFields'
[DCC Warning] ZDbcMySqlMetadata.pas(82): H2365 Override method TZMySQLDatabaseMetadata.UnCachedGetCatalogs should match case of ancestor TZAbstractDatabaseMetadata.UncachedGetCatalogs
[DCC Warning] ZDbcPostgreSqlMetadata.pas(90): H2365 Override method TZPostgreSQLDatabaseMetadata.UncachedGetSchemas should match case of ancestor TZAbstractDatabaseMetadata.UnCachedGetSchemas
[DCC Warning] ZDbcInterbase6Metadata.pas(2018): H2164 Variable 'Key' is declared but never used in 'TZInterbase6DatabaseMetadata.UncachedGetImportedKeys'
[DCC Warning] ZDbcSqLite.pas(311): H2164 Variable 'ErrorMessage' is declared but never used in 'TZSQLiteConnection.Key'
[DCC Warning] ZDbcSqLite.pas(326): H2164 Variable 'ErrorMessage' is declared but never used in 'TZSQLiteConnection.ReKey'
[DCC Warning] ZDbcOracleMetadata.pas(76): H2365 Override method TZOracleDatabaseMetadata.UncachedGetSchemas should match case of ancestor TZAbstractDatabaseMetadata.UnCachedGetSchemas
[DCC Warning] ZDbcASAMetadata.pas(77): H2365 Override method TZASADatabaseMetadata.UncachedGetSchemas should match case of ancestor TZAbstractDatabaseMetadata.UnCachedGetSchemas
[DCC Warning] ZDbcASAResultSet.pas(801): W1044 Suspicious typecast of WideString to PAnsiChar
[DCC Warning] ZAbstractRODataset.pas(341): W1000 Symbol 'PSGetTableName' is deprecated
[DCC Warning] ZAbstractRODataset.pas(342): W1000 Symbol 'PSGetQuoteChar' is deprecated
[DCC Warning] ZAbstractRODataset.pas(351): W1000 Symbol 'PSGetKeyFields' is deprecated
[DCC Warning] ZAbstractRODataset.pas(2978): W1000 Symbol 'PSGetKeyFields' is deprecated
[DCC Warning] ZConnection.pas(1222): H2077 Value assigned to 'TZConnection.ExecuteDirect' never used
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

This job is almost impossible as some things are compiler dependent. (eg. the deprecated warnings)

But some work is underway. See http://fisheye2.atlassian.com/changelog/zeos/?cs=459

So, we know about a lot of these warnings. If you want to fix some, please do so and send us the patches. If they pass all compilers and the test suite they'll be applied, I promise.

Mark
Image
Post Reply