2011-06-03 17:06:50 +04:00
|
|
|
#/bin/sh
|
|
|
|
#
|
|
|
|
# Run this script in a directory with a working makefile to check for
|
|
|
|
# compiler warnings in SQLite.
|
|
|
|
#
|
2011-08-24 19:12:08 +04:00
|
|
|
rm -f sqlite3.c
|
2014-05-27 23:18:36 +04:00
|
|
|
make sqlite3.c
|
2011-06-03 17:06:50 +04: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
|
2015-06-15 17:43:25 +03:00
|
|
|
echo '********** Android configuration ******************************'
|
|
|
|
gcc -c \
|
|
|
|
-DHAVE_USLEEP=1 \
|
|
|
|
-DSQLITE_HAVE_ISNAN \
|
|
|
|
-DSQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576 \
|
|
|
|
-DSQLITE_THREADSAFE=2 \
|
|
|
|
-DSQLITE_TEMP_STORE=3 \
|
|
|
|
-DSQLITE_POWERSAFE_OVERWRITE=1 \
|
|
|
|
-DSQLITE_DEFAULT_FILE_FORMAT=4 \
|
|
|
|
-DSQLITE_DEFAULT_AUTOVACUUM=1 \
|
|
|
|
-DSQLITE_ENABLE_MEMORY_MANAGEMENT=1 \
|
|
|
|
-DSQLITE_ENABLE_FTS3 \
|
|
|
|
-DSQLITE_ENABLE_FTS3_BACKWARDS \
|
|
|
|
-DSQLITE_ENABLE_FTS4 \
|
|
|
|
-DSQLITE_OMIT_BUILTIN_TEST \
|
|
|
|
-DSQLITE_OMIT_COMPILEOPTION_DIAGS \
|
|
|
|
-DSQLITE_OMIT_LOAD_EXTENSION \
|
|
|
|
-DSQLITE_DEFAULT_FILE_PERMISSIONS=0600 \
|
|
|
|
-DSQLITE_ENABLE_ICU \
|
|
|
|
-DUSE_PREAD64 \
|
|
|
|
-Wshadow -Wall -Wextra \
|
|
|
|
-Os sqlite3.c shell.c
|
2013-10-11 19:05:05 +04:00
|
|
|
echo '********** No optimizations. ENABLE_STAT4. THREADSAFE=0 *******'
|
2011-06-24 15:29:51 +04:00
|
|
|
gcc -c -Wshadow -Wall -Wextra -pedantic-errors -Wno-long-long -std=c89 \
|
2013-10-11 19:05:05 +04:00
|
|
|
-ansi -DSQLITE_ENABLE_STAT4 -DSQLITE_THREADSAFE=0 \
|
2011-06-24 15:29:51 +04:00
|
|
|
sqlite3.c
|
|
|
|
echo '********** Optimized -O3. Includes FTS4 and RTREE ************'
|
2011-06-03 17:06:50 +04: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
|