/ Check-in [7940bff3]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Update the tool/warnings.sh script to automatically use the right options on OpenBSD.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 7940bff32aa6ea868a53680822d148b7ec7a075c01ae9e0d5ad9859bcc339054
User & Date: dan 2017-05-16 09:49:42
Original Comment: Update the tool/warnings.sh script to automatically use the right options on OpenBSD..
Context
2017-05-19
12:32
Fix some problems in fts5 code detected by -fsanitize=undefined. check-in: 35f72104 user: dan tags: trunk
2017-05-18
18:17
Fix a documentation typo. No changes to code. Closed-Leaf check-in: cfa4aa20 user: drh tags: doc-type
2017-05-16
09:49
Update the tool/warnings.sh script to automatically use the right options on OpenBSD. check-in: 7940bff3 user: dan tags: trunk
2017-05-15
15:12
Fix the build so that it works again with SQLITE_OMIT_SUBQUERY. check-in: bb0d9281 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tool/warnings.sh.

     1      1   #/bin/sh
     2      2   #
     3      3   # Run this script in a directory with a working makefile to check for 
     4      4   # compiler warnings in SQLite.
     5      5   #
     6      6   
     7         -# Use these for testing on Linux and Mac OSX:
     8         -WARNING_OPTS="-Wshadow -Wall -Wextra -pedantic-errors -Wno-long-long"
     9         -WARNING_ANDROID_OPTS="-Wshadow -Wall -Wextra"
    10         -
    11         -# Use these for testing on OpenBSD:
    12         -# WARNING_OPTS=-Wall
    13         -# WARNING_ANDROID_OPTS=-Wall
            7  +if uname | grep -i openbsd ; then
            8  +  # Use these for testing on OpenBSD:
            9  +  WARNING_OPTS=-Wall
           10  +  WARNING_ANDROID_OPTS=-Wall
           11  +else
           12  +  # Use these for testing on Linux and Mac OSX:
           13  +  WARNING_OPTS="-Wshadow -Wall -Wextra -pedantic-errors -Wno-long-long"
           14  +  WARNING_ANDROID_OPTS="-Wshadow -Wall -Wextra"
           15  +fi
    14     16   
    15     17   rm -f sqlite3.c
    16     18   make sqlite3.c
    17     19   echo '********** No optimizations.  Includes FTS4/5, RTREE, JSON1 ***'
    18     20   echo '**********    ' Options: $WARNING_OPTS
    19     21   gcc -c $WARNING_OPTS -std=c89 \
    20     22         -ansi -DHAVE_STDINT_H -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE \