2011-06-03 15:06:50 +02:00
|
|
|
#/bin/sh
|
|
|
|
#
|
|
|
|
# Run this script in a directory with a working makefile to check for
|
|
|
|
# compiler warnings in SQLite.
|
|
|
|
#
|
2011-08-24 17:12:08 +02:00
|
|
|
rm -f sqlite3.c
|
|
|
|
make sqlite3.c-debug
|
2011-06-03 15:06:50 +02:00
|
|
|
echo '********** No optimizations. Includes FTS4 and RTREE *********'
|
|
|
|
gcc -c -Wshadow -Wall -Wextra -pedantic-errors -Wno-long-long -std=c89 \
|
|
|
|
-ansi -DHAVE_STDINT_H -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE \
|
|
|
|
sqlite3.c
|
2013-10-11 17:05:05 +02:00
|
|
|
echo '********** No optimizations. ENABLE_STAT4. THREADSAFE=0 *******'
|
2011-06-24 13:29:51 +02:00
|
|
|
gcc -c -Wshadow -Wall -Wextra -pedantic-errors -Wno-long-long -std=c89 \
|
2013-10-11 17:05:05 +02:00
|
|
|
-ansi -DSQLITE_ENABLE_STAT4 -DSQLITE_THREADSAFE=0 \
|
2011-06-24 13:29:51 +02:00
|
|
|
sqlite3.c
|
|
|
|
echo '********** Optimized -O3. Includes FTS4 and RTREE ************'
|
2011-06-03 15:06:50 +02:00
|
|
|
gcc -O3 -c -Wshadow -Wall -Wextra -pedantic-errors -Wno-long-long -std=c89 \
|
|
|
|
-ansi -DHAVE_STDINT_H -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE \
|
|
|
|
sqlite3.c
|