Hi Guillermo,
These are warnings in foreign code, they should either be:
1) ignored (since they most probably don't cause any harm)
2) fixed (and submitted to the sqlite project)
3) suppressed by compiler specific pragmas or other methods.
(BCC is suppressed already)
It seems that Harbour's "no-warning policy" is rare to find
amongst other projects.
Brgds,
Viktor
On 2008.06.04., at 23:15, Guillermo Varona Silupú wrote:
Szakáts Viktor escribió:
2008-06-04 20:17 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbsqlit3/hbsqlit3.c
! Fix for GCC.
Hello, I'm doing tests with hbsqlite3, when the genre LIB throws me
several Warnings, but it generates the LIB and work examples.
What do these warnings?
TIA
Best Regards
GVS
Here I put some warnings:
D:\harbour\contrib\hbsqlit3>mingw32-make
D:\harbour\contrib\hbsqlit3>if not exist w32\. md w32
D:\harbour\contrib\hbsqlit3>if not exist w32\mingw32\. md w32\mingw32
D:\harbour\contrib\hbsqlit3>if not exist ..\..\lib\w32\. md .\..\lib
\w32
D:\harbour\contrib\hbsqlit3>if not exist ..\..\lib\w32\mingw32\. md
..\..\lib\w3 2\mingw32
mingw32-make[1]: Entering directory
'D:/harbour/contrib/hbsqlit3/w32/mingw32'
gcc -I. -I../../../../include -mno-cygwin -Wall -W -c ../../
hbsqlit3.c
-ohbsqlit3.o In file included from ../../hbsqlit3.c:46:
../../sqlite3/sqlite3.c: In function `parseModifier':
../../sqlite3/sqlite3.c:9948: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `strftimeFunc':
../../sqlite3/sqlite3.c:10305: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: At top level:
../../sqlite3/sqlite3.c:10384: warning: unused parameter 'argc'
../../sqlite3/sqlite3.c:10386: warning: unused parameter 'argv'
../../sqlite3/sqlite3.c:10397: warning: unused parameter 'argc'
../../sqlite3/sqlite3.c:10399: warning: unused parameter 'argv'
../../sqlite3/sqlite3.c:10410: warning: unused parameter 'argc'
../../sqlite3/sqlite3.c:10412: warning: unused parameter 'argv'
../../sqlite3/sqlite3.c: In function
`sqlite3RegisterDateTimeFunctions':
../../sqlite3/sqlite3.c:10486: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `sqlite3_mutex_alloc':
../../sqlite3/sqlite3.c:13648: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: At top level:
../../sqlite3/sqlite3.c:13698: warning: unused parameter 'p'
../../sqlite3/sqlite3.c:13774: warning: unused parameter 'NotUsed'
../../sqlite3/sqlite3.c:13775: warning: unused parameter 'inUse'
../../sqlite3/sqlite3.c:13775: warning: unused parameter 'inUse'
../../sqlite3/sqlite3.c:13807: warning: unused parameter 'n'
../../sqlite3/sqlite3.c: In function `appendSpace':
../../sqlite3/sqlite3.c:14166: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `vxprintf':
../../sqlite3/sqlite3.c:14331: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `sqlite3SafetyCheckOk':
../../sqlite3/sqlite3.c:16950: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:16951: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `sqlite3SafetyCheckSickOrOk':
../../sqlite3/sqlite3.c:16959: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:16960: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: At top level:
../../sqlite3/sqlite3.c:22512: warning: unused parameter 'flags'
../../sqlite3/sqlite3.c:22803: warning: unused parameter 'id'
../../sqlite3/sqlite3.c:22810: warning: unused parameter 'id'
../../sqlite3/sqlite3.c:22861: warning: unused parameter 'pVfs'
../../sqlite3/sqlite3.c: In function `winDelete':
../../sqlite3/sqlite3.c:23001: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:23009: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:23014: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: At top level:
../../sqlite3/sqlite3.c:22986: warning: unused parameter 'pVfs'
../../sqlite3/sqlite3.c:22989: warning: unused parameter 'syncDir'
../../sqlite3/sqlite3.c:23021: warning: unused parameter 'pVfs'
../../sqlite3/sqlite3.c:23060: warning: unused parameter 'pVfs'
../../sqlite3/sqlite3.c:23114: warning: unused parameter 'nFull'
../../sqlite3/sqlite3.c:23178: warning: unused parameter 'pVfs'
../../sqlite3/sqlite3.c:23196: warning: unused parameter 'pVfs'
../../sqlite3/sqlite3.c:23216: warning: unused parameter 'pVfs'
../../sqlite3/sqlite3.c:23226: warning: unused parameter 'pVfs'
../../sqlite3/sqlite3.c: In function `winRandomness':
../../sqlite3/sqlite3.c:23242: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:23242: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:23248: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:23253: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:23258: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: At top level:
../../sqlite3/sqlite3.c:23240: warning: unused parameter 'pVfs'
../../sqlite3/sqlite3.c:23271: warning: unused parameter 'pVfs'
../../sqlite3/sqlite3.c:23289: warning: unused parameter 'pVfs'
../../sqlite3/sqlite3.c: In function `sqlite3BitvecSet':
../../sqlite3/sqlite3.c:23511: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `sqlite3BitvecClear':
../../sqlite3/sqlite3.c:23542: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `sqlite3BitvecDestroy':
../../sqlite3/sqlite3.c:23557: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `readMasterJournal':
../../sqlite3/sqlite3.c:24580: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:24597: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `pager_playback_one_page':
../../sqlite3/sqlite3.c:25193: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `pager_playback':
../../sqlite3/sqlite3.c:25592: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `sqlite3PagerOpen':
../../sqlite3/sqlite3.c:25921: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `pager_truncate_cache':
../../sqlite3/sqlite3.c:26314: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `pager_write_pagelist':
../../sqlite3/sqlite3.c:26743: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `pagerAcquire':
../../sqlite3/sqlite3.c:27414: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `sqlite3PagerWrite':
../../sqlite3/sqlite3.c:28048: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `sqlite3PagerCommitPhaseOne':
../../sqlite3/sqlite3.c:28366: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:28366: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:28367: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: At top level:
../../sqlite3/sqlite3.c:31038: warning: unused parameter 'pageSize'
../../sqlite3/sqlite3.c:31060: warning: unused parameter 'pageSize'
../../sqlite3/sqlite3.c:31074: warning: unused parameter 'n'
../../sqlite3/sqlite3.c: In function `incrVacuumStep':
../../sqlite3/sqlite3.c:32127: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:32200: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `autoVacuumCommit':
../../sqlite3/sqlite3.c:32262: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:32268: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:32268: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:32271: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `getOverflowPage':
../../sqlite3/sqlite3.c:32929: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:32933: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `accessPayload':
../../sqlite3/sqlite3.c:33055: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `fetchPayload':
../../sqlite3/sqlite3.c:33258: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `allocateBtreePage':
../../sqlite3/sqlite3.c:33918: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:34054: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:34092: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:34104: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `clearCell':
../../sqlite3/sqlite3.c:34237: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `fillInCell':
../../sqlite3/sqlite3.c:34327: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `btreeCreateTable':
../../sqlite3/sqlite3.c:35848: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `clearDatabasePage':
. . .
../../sqlite3/sqlite3.c:64971: warning: unused parameter 'idx'
../../sqlite3/sqlite3.c:66129: warning: unused parameter 'pParse'
../../sqlite3/sqlite3.c:67982: warning: unused parameter 'pParse'
../../sqlite3/sqlite3.c: In function `sqlite3RunVacuum':
../../sqlite3/sqlite3.c:69145: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `sqlite3VtabUnlock':
../../sqlite3/sqlite3.c:69286: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `bestVirtualIndex':
../../sqlite3/sqlite3.c:71291: warning: empty body in an if-statement
../../sqlite3/sqlite3.c:71341: warning: empty body in an if-statement
../../sqlite3/sqlite3.c: In function `bestIndex':
../../sqlite3/sqlite3.c:71679: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: In function `sqlite3WhereBegin':
../../sqlite3/sqlite3.c:72043: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c:72292: warning: comparison between signed and
unsigned
../../sqlite3/sqlite3.c: At top level:
../../sqlite3/sqlite3.c:74484: warning: unused parameter 'yypMinor'
../../sqlite3/sqlite3.c:75943: warning: unused parameter 'yymajor'
../../sqlite3/sqlite3.c:77161: warning: unused parameter 'NotUsed'
../../sqlite3/sqlite3.c: In function `sqliteDefaultBusyCallback':
../../sqlite3/sqlite3.c:77392: warning: comparison between signed and
unsigned
../../hbsqlit3.c: At top level:
../../sqlite3/sqlite3.c:6753: warning: 'sqlite3BtreeHoldsMutex'
declared
`stati
' but never defined
../../sqlite3/sqlite3.c:6758: warning: 'sqlite3BtreeHoldsAllMutexes'
declared `
tatic' but never defined
../../sqlite3/sqlite3.c:13576: warning: 'mutexIsNT' defined but not
used
ar cr ../../../../lib/w32/mingw32/libhbsqlit3.a hbsqlit3.o && ranlib
../../../
./lib/w32/mingw32/libhbsqlit3.a || del /q /f
../../../../lib/w32/mingw32/libhbs
lit3.a
mingw32-make[1]: Leaving directory `D:/harbour/contrib/hbsqlit3/w32/
mingw32'
D:\harbour\contrib\hbsqlit3>
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour