$ 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);
                    ^

Suggested fix:
============================================
$ fossil diff --from trunk sqliteInt.h
--- sqliteInt.h
+++ sqliteInt.h
@@ -3357,10 +3357,12 @@
   void sqlite3WithDelete(sqlite3*,With*);
   void sqlite3WithPush(Parse*, With*, u8);
 #else
 #define sqlite3WithPush(x,y,z)
 #define sqlite3WithDelete(x,y)
+#define sqlite3WithAdd(p,w,t,x,y) (sqlite3ErrorMsg((p), \
+    "near \"%T\": syntax error", (t)),(With*)(w))
 #endif

 /* Declarations for functions in fkey.c. All of these are replaced by
 ** no-op macros if OMIT_FOREIGN_KEY is defined. In this case no foreign
 ** key functionality is available. If OMIT_TRIGGER is defined but
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to