diff options
author | drh <drh@noemail.net> | 2008-12-08 16:01:12 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-12-08 16:01:12 +0000 |
commit | 128255fce671bf3c19feb569f4b87e7e6003da24 (patch) | |
tree | c9d8d65f00757dae33a347ad4f7063862e597e1c /src | |
parent | 555f8de7ef2202781d1e5e929c7d2c1a4045a59c (diff) | |
download | sqlite-128255fce671bf3c19feb569f4b87e7e6003da24.tar.gz sqlite-128255fce671bf3c19feb569f4b87e7e6003da24.zip |
Fix two unused-parameter warnings in the parser. (CVS 5990)
FossilOrigin-Name: cf419d0b01c0144b752f4283ba9668747339b218
Diffstat (limited to 'src')
-rw-r--r-- | src/parse.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parse.y b/src/parse.y index 9a4fbbb3b..5fa11ad5c 100644 --- a/src/parse.y +++ b/src/parse.y @@ -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; } |