2011-10-15 04:16:30 +04:00
|
|
|
#/bin/sh
|
|
|
|
#
|
|
|
|
# Run this script in a directory with a working makefile to check for
|
|
|
|
# compiler warnings in SQLite.
|
|
|
|
#
|
|
|
|
rm -f sqlite3.c
|
|
|
|
make sqlite3.c
|
|
|
|
echo '************* FTS4 and RTREE ****************'
|
|
|
|
scan-build gcc -c -DHAVE_STDINT_H -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE \
|
2012-06-07 03:59:36 +04:00
|
|
|
-DSQLITE_DEBUG -DSQLITE_ENABLE_STAT3 sqlite3.c 2>&1 | grep -v 'ANALYZE:'
|
2011-10-15 04:16:30 +04:00
|
|
|
echo '********** ENABLE_STAT3. THREADSAFE=0 *******'
|
2012-04-11 15:38:53 +04:00
|
|
|
scan-build gcc -c -I. -DSQLITE_ENABLE_STAT3 -DSQLITE_THREADSAFE=0 \
|
|
|
|
-DSQLITE_DEBUG \
|
|
|
|
sqlite3.c ../sqlite/src/shell.c -ldl 2>&1 | grep -v 'ANALYZE:'
|