blob: 7a0aa4bce7f86fddaf70373c18ca83137d023f60 [file] [log] [blame]
drh30ddce62011-10-15 00:16:30 +00001#/bin/sh
2#
3# Run this script in a directory with a working makefile to check for
4# compiler warnings in SQLite.
5#
6rm -f sqlite3.c
7make sqlite3.c
8echo '************* FTS4 and RTREE ****************'
9scan-build gcc -c -DHAVE_STDINT_H -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE \
drh5e0c4932012-06-06 23:59:36 +000010 -DSQLITE_DEBUG -DSQLITE_ENABLE_STAT3 sqlite3.c 2>&1 | grep -v 'ANALYZE:'
drh30ddce62011-10-15 00:16:30 +000011echo '********** ENABLE_STAT3. THREADSAFE=0 *******'
drh85e72432012-04-11 11:38:53 +000012scan-build gcc -c -I. -DSQLITE_ENABLE_STAT3 -DSQLITE_THREADSAFE=0 \
13 -DSQLITE_DEBUG \
14 sqlite3.c ../sqlite/src/shell.c -ldl 2>&1 | grep -v 'ANALYZE:'