/ Check-in [61b4c120]
Login

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

Overview
Comment:Fix another unused variable warning in fts5 code.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 61b4c120540afd80a4021b0d3990f13acc38a059
User & Date: dan 2016-02-11 18:18:33
Context
2016-02-11
21:53
Remove the unused fts5BlobCompare() routine. check-in: defc762d user: drh tags: trunk
21:28
Enhance the MSVC makefile to enable building 'testfixture' fully from source code. check-in: 54ff3a26 user: mistachkin tags: testFixtureSrc
18:18
Fix another unused variable warning in fts5 code. check-in: 61b4c120 user: dan tags: trunk
18:08
Avoid a buffer overread when reading a corrupt fts5 structure record. check-in: facbc424 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/fts5/fts5parse.y.

    24     24   
    25     25   // The generated parser function takes a 4th argument as follows:
    26     26   %extra_argument {Fts5Parse *pParse}
    27     27   
    28     28   // This code runs whenever there is a syntax error
    29     29   //
    30     30   %syntax_error {
           31  +  UNUSED_PARAM(yymajor); /* Silence a compiler warning */
    31     32     sqlite3Fts5ParseError(
    32     33       pParse, "fts5: syntax error near \"%.*s\"",TOKEN.n,TOKEN.p
    33     34     );
    34     35   }
    35     36   %stack_overflow {
    36         -  UNUSED_PARAM(yypMinor); /* Silence some compiler warnings */
           37  +  UNUSED_PARAM(yypMinor); /* Silence a compiler warning */
    37     38     sqlite3Fts5ParseError(pParse, "fts5: parser stack overflow");
    38     39   }
    39     40   
    40     41   // The name of the generated procedure that implements the parser
    41     42   // is as follows:
    42     43   %name sqlite3Fts5Parser
    43     44