File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / sqlite3 / tool / warnings.sh
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 17:04:17 2012 UTC (12 years, 10 months ago) by misho
Branches: sqlite3, MAIN
CVS tags: v3_7_10, HEAD
sqlite3

    1: #/bin/sh
    2: #
    3: # Run this script in a directory with a working makefile to check for 
    4: # compiler warnings in SQLite.
    5: #
    6: rm -f sqlite3.c
    7: make sqlite3.c-debug
    8: echo '********** No optimizations.  Includes FTS4 and RTREE *********'
    9: gcc -c -Wshadow -Wall -Wextra -pedantic-errors -Wno-long-long -std=c89 \
   10:       -ansi -DHAVE_STDINT_H -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE \
   11:       sqlite3.c
   12: echo '********** No optimizations. ENABLE_STAT3. THREADSAFE=0 *******'
   13: gcc -c -Wshadow -Wall -Wextra -pedantic-errors -Wno-long-long -std=c89 \
   14:       -ansi -DSQLITE_ENABLE_STAT3 -DSQLITE_THREADSAFE=0 \
   15:       sqlite3.c
   16: echo '********** Optimized -O3.  Includes FTS4 and RTREE ************'
   17: gcc -O3 -c -Wshadow -Wall -Wextra -pedantic-errors -Wno-long-long -std=c89 \
   18:       -ansi -DHAVE_STDINT_H -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE \
   19:       sqlite3.c

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>