sqlcipher/tool/warnings-clang.sh

15 lines
572 B
Bash
Raw Normal View History

2011-12-26 14:52:17 -05:00
#/bin/sh
#
# Run this script in a directory with a working makefile to check for
# compiler warnings in SQLite.
#
2018-09-18 12:31:37 -04:00
rm -f sqlite3.c shell.c
make sqlite3.c shell.c
2011-12-26 14:52:17 -05:00
echo '************* FTS4 and RTREE ****************'
scan-build gcc -c -DHAVE_STDINT_H -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE \
2012-07-18 14:42:52 -04:00
-DSQLITE_DEBUG -DSQLITE_ENABLE_STAT3 sqlite3.c 2>&1 | grep -v 'ANALYZE:'
2011-12-26 14:52:17 -05:00
echo '********** ENABLE_STAT3. THREADSAFE=0 *******'
2012-05-15 19:05:34 -04:00
scan-build gcc -c -I. -DSQLITE_ENABLE_STAT3 -DSQLITE_THREADSAFE=0 \
-DSQLITE_DEBUG \
2018-09-18 12:31:37 -04:00
sqlite3.c shell.c -ldl 2>&1 | grep -v 'ANALYZE:'