Index: third_party/sqlite/src/tool/warnings.sh |
diff --git a/third_party/sqlite/src/tool/warnings.sh b/third_party/sqlite/src/tool/warnings.sh |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5d71361138d7d19475d852bd3a69e5b80776c266 |
--- /dev/null |
+++ b/third_party/sqlite/src/tool/warnings.sh |
@@ -0,0 +1,19 @@ |
+#/bin/sh |
+# |
+# Run this script in a directory with a working makefile to check for |
+# compiler warnings in SQLite. |
+# |
+rm -f sqlite3.c |
+make sqlite3.c |
+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 |
+echo '********** No optimizations. ENABLE_STAT4. THREADSAFE=0 *******' |
+gcc -c -Wshadow -Wall -Wextra -pedantic-errors -Wno-long-long -std=c89 \ |
+ -ansi -DSQLITE_ENABLE_STAT4 -DSQLITE_THREADSAFE=0 \ |
+ sqlite3.c |
+echo '********** Optimized -O3. Includes FTS4 and RTREE ************' |
+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 |