/ Check-in [cf419d0b]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix two unused-parameter warnings in the parser. (CVS 5990)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: cf419d0b01c0144b752f4283ba9668747339b218
User & Date: drh 2008-12-08 16:01:13
Context
2008-12-08
18:19
The amalgamation now compiles cleanly on GCC with options -pedantic-errors -Wno-long-long. (CVS 5991) check-in: 73c7302c user: drh tags: trunk
16:01
Fix two unused-parameter warnings in the parser. (CVS 5990) check-in: cf419d0b user: drh tags: trunk
13:42
Fix a segfault associated with the column cache that occurs on nested VIEWs. Ticket #3527. (CVS 5989) check-in: 490138a2 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/parse.y.

    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains SQLite's grammar for SQL.  Process this file
    13     13   ** using the lemon parser generator to generate C code that runs
    14     14   ** the parser.  Lemon will also generate a header file containing
    15     15   ** numeric codes for all of the tokens.
    16     16   **
    17         -** @(#) $Id: parse.y,v 1.263 2008/12/03 23:23:41 drh Exp $
           17  +** @(#) $Id: parse.y,v 1.264 2008/12/08 16:01:13 drh Exp $
    18     18   */
    19     19   
    20     20   // All token codes are small integers with #defines that begin with "TK_"
    21     21   %token_prefix TK_
    22     22   
    23     23   // The type of the data attached to each token is Token.  This is also the
    24     24   // default type for non-terminals.
................................................................................
    28     28   
    29     29   // The generated parser function takes a 4th argument as follows:
    30     30   %extra_argument {Parse *pParse}
    31     31   
    32     32   // This code runs whenever there is a syntax error
    33     33   //
    34     34   %syntax_error {
           35  +  UNUSED_PARAMETER(yymajor);  /* Silence some compiler warnings */
    35     36     assert( TOKEN.z[0] );  /* The tokenizer always gives us a token */
    36     37     sqlite3ErrorMsg(pParse, "near \"%T\": syntax error", &TOKEN);
    37     38     pParse->parseError = 1;
    38     39   }
    39     40   %stack_overflow {
           41  +  UNUSED_PARAMETER(yypMinor); /* Silence some compiler warnings */
    40     42     sqlite3ErrorMsg(pParse, "parser stack overflow");
    41     43     pParse->parseError = 1;
    42     44   }
    43     45   
    44     46   // The name of the generated procedure that implements the parser
    45     47   // is as follows:
    46     48   %name sqlite3Parser