On 01/20/2014 08:36 PM, Jan Nijtmans wrote:
$ gcc -c -Wall -o sqlite3.o -DSQLITE_OMIT_CTE sqlite3.c sqlite3.c: In function ‘yy_reduce’: sqlite3.c:117782:3: warning: implicit declaration of function ‘sqlite3WithAdd’ [-Wimplicit-function-declaration] yygotominor.yy59 = sqlite3WithAdd(pParse, 0, &yymsp[-5].minor.yy0, yymsp[-4].minor.yy14, yymsp[-1].minor.yy3); ^ sqlite3.c:117782:20: warning: assignment makes pointer from integer without a cast [enabled by default] yygotominor.yy59 = sqlite3WithAdd(pParse, 0, &yymsp[-5].minor.yy0, yymsp[-4].minor.yy14, yymsp[-1].minor.yy3); ^ sqlite3.c:117787:20: warning: assignment makes pointer from integer without a cast [enabled by default] yygotominor.yy59 = sqlite3WithAdd(pParse, yymsp[-7].minor.yy59, &yymsp[-5].minor.yy0, yymsp[-4].minor.yy14, yymsp[-1].minor.yy3); ^
Looks like SQLITE_OMIT_CTE only works with full source builds, not the amalgamation. As it causes code to be omitted from parse.y. There are a few others this is true of as well - OMIT_VIRTUALTABLE, OMIT_TRIGGER etc. Dan. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users