Fix two unused-parameter warnings in the parser. (CVS 5990)

FossilOrigin-Name: cf419d0b01c0144b752f4283ba9668747339b218
This commit is contained in:
drh 2008-12-08 16:01:12 +00:00
parent 555f8de7ef
commit 128255fce6
3 changed files with 10 additions and 8 deletions

@ -1,5 +1,5 @@
C Fix\sa\ssegfault\sassociated\swith\sthe\scolumn\scache\sthat\soccurs\son\snested\sVIEWs.\nTicket\s#3527.\s(CVS\s5989)
D 2008-12-08T13:42:36
C Fix\stwo\sunused-parameter\swarnings\sin\sthe\sparser.\s(CVS\s5990)
D 2008-12-08T16:01:13
F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
F Makefile.in f7e4c81c347b04f7b0f1c1b081a168645d7b8af7
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@ -141,7 +141,7 @@ F src/os_unix.c e625d228800b367b32c6ec888df34a06103f6e8c
F src/os_win.c 3dff41670fb9798a869c636626bb7d6d8b6a45bb
F src/pager.c a193da9e271898077de815819e4c29fc2b6ece2a
F src/pager.h a02ef8e6cc7e78b54874166e5ce786c9d4c489bf
F src/parse.y 72397fe334b25b4f3411edbf49b5b706f2d7bdae
F src/parse.y 1f4b7ad690864911919da0c76fa96fd72694185e
F src/pcache.c 16dc8da6e6ba6250f8dfd9ee46036db1cbceedc6
F src/pcache.h f20c3e82dd6da622c3fe296170cb1801f9a2d75a
F src/pcache1.c fb6cf5b80996ed316842d25005f4981bef7ce548
@ -664,7 +664,7 @@ F tool/speedtest16.c c8a9c793df96db7e4933f0852abb7a03d48f2e81
F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
P 9d061e20d885bee7ac7875500a0e7c238b540a63
R 0e9bcc610555d728a81eaf83a45e7f41
P 490138a2012fcb4c859e1cf12a35e314ec1060d2
R f00482f9dbf81d06697eef8e8363dced
U drh
Z 3a9348ac11f48ee17609e92ff5312be5
Z c2ae23ba51235354d257132525c0b6d8

@ -1 +1 @@
490138a2012fcb4c859e1cf12a35e314ec1060d2
cf419d0b01c0144b752f4283ba9668747339b218

@ -14,7 +14,7 @@
** the parser. Lemon will also generate a header file containing
** numeric codes for all of the tokens.
**
** @(#) $Id: parse.y,v 1.263 2008/12/03 23:23:41 drh Exp $
** @(#) $Id: parse.y,v 1.264 2008/12/08 16:01:13 drh Exp $
*/
// All token codes are small integers with #defines that begin with "TK_"
@ -32,11 +32,13 @@
// This code runs whenever there is a syntax error
//
%syntax_error {
UNUSED_PARAMETER(yymajor); /* Silence some compiler warnings */
assert( TOKEN.z[0] ); /* The tokenizer always gives us a token */
sqlite3ErrorMsg(pParse, "near \"%T\": syntax error", &TOKEN);
pParse->parseError = 1;
}
%stack_overflow {
UNUSED_PARAMETER(yypMinor); /* Silence some compiler warnings */
sqlite3ErrorMsg(pParse, "parser stack overflow");
pParse->parseError = 1;
}