When I build sqlite3 3.3.16 on Mac OS X with -O3 optimization, I get the following list of warnings about potentially uninitialized variables:

gcc 3.3:

CompileC build/sqlite.build/Release/sqlite_static_lib.build/Objects- normal/ppc/sqlite3.o sqlite3.c normal ppc c com.apple.compilers.gcc. 3_3
    setenv MACOSX_DEPLOYMENT_TARGET 10.2
    setenv NEXT_ROOT /Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/gcc-3.3 -x c -arch ppc -pipe -Wno-trigraphs -fpascal- strings -fasm-blocks -g -O3 -Wunused-label -DOS_UNIX=1 - DSQLITE_OMIT_CURSOR -DTHREADSAFE=1 -DHAVE_USLEEP=1 - DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DTEMP_STORE=1 -DFD_SETSIZE=8192 - DNDEBUG -fmessage-length=0 -mtune=G5 -Wp,-header- mapfile,sqlite.build/Release/sqlite_static_lib.build/sqlite.hmap - Wconversion -Wall -Winvalid-pch -FRelease -IRelease/include - Isqlite.build/Release/sqlite_static_lib.build/DerivedSources - DMAC_OS_X_VERSION_MIN_REQUIRED=1020 -fconstant-cfstrings - D__CONSTANT_CFSTRINGS__ -isystem /Developer/SDKs/MacOSX10.4u.sdk/ usr/include/gcc/darwin/3.3 -isystem /Developer/SDKs/MacOSX10.4u.sdk/ usr/include -c build/sqlite3.c -o sqlite.build/Release/ sqlite_static_lib.build/Objects-normal/ppc/sqlite3.o sqlite3.c:53801: warning: `pEList' might be used uninitialized in this function sqlite3.c:53802: warning: `pTabList' might be used uninitialized in this function sqlite3.c:6644: warning: `xtype' might be used uninitialized in this function

gcc 4.0:

CompileC sqlite.build/Release/sqlite_static_lib.build/Objects- normal/i386/sqlite3.o sqlite3.c normal i386 c com.apple.compilers.gcc.4_0 /usr/bin/gcc-4.0 -x c -arch i386 -pipe -Wno-trigraphs -fpascal- strings -fasm-blocks -g -O3 -Wunused-label -DOS_UNIX=1 - DSQLITE_OMIT_CURSOR -DTHREADSAFE=1 -DHAVE_USLEEP=1 - DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DTEMP_STORE=1 -DFD_SETSIZE=8192 - DNDEBUG -fmessage-length=0 -mmacosx-version-min=10.4 -Isqlite.build/ Release/sqlite_static_lib.build/sqlite.hmap -Wconversion -Wall - Winvalid-pch -FRelease -IRelease/include -Isqlite.build/Release/ sqlite_static_lib.build/DerivedSources -isysroot /Developer/SDKs/ MacOSX10.4u.sdk -c sqlite3.c -o sqlite.build/Release/ sqlite_static_lib.build/Objects-normal/i386/sqlite3.o
sqlite3.c: In function 'sqlite3PagerAcquire':
sqlite3.c:19521: warning: 'ro' may be used uninitialized in this function
sqlite3.c: In function 'sqlite3VdbeExec':
sqlite3.c:35452: warning: 'res' may be used uninitialized in this function sqlite3.c:35406: warning: 'res' may be used uninitialized in this function sqlite3.c:35346: warning: 'v' may be used uninitialized in this function sqlite3.c:35285: warning: 'n' may be used uninitialized in this function sqlite3.c:35304: warning: 'n64' may be used uninitialized in this function sqlite3.c:35212: warning: 'iKey' may be used uninitialized in this function sqlite3.c:33793: warning: 'avail' may be used uninitialized in this function sqlite3.c:33752: warning: 'payloadSize64' may be used uninitialized in this function sqlite3.c:33702: warning: 'payloadSize' may be used uninitialized in this function
sqlite3.c: In function 'sqlite3DeleteFrom':
sqlite3.c:45097: warning: 'sContext.zAuthContext' may be used uninitialized in this function
sqlite3.c: In function 'sqlite3Update':
sqlite3.c:55535: warning: 'sContext.zAuthContext' may be used uninitialized in this function

Taking a quick look at the source locations, at least some of them may be wrong warnings, but others I can't judge without diving deeper into the code...
Haven't seen them in non-optimizing builds, though...

</jum>


-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to