/ Check-in [3a052429]
Login

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

Overview
Comment:Fix harmless compiler warning in lemon.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | branch-3.28
Files: files | file ages | folders
SHA3-256: 3a0524295371d7b19d260c60fcbad96d60fcf098580a69959c13c7fcd7d41389
User & Date: mistachkin 2019-06-03 15:10:24
Context
2019-07-18
20:55
Fix a problem where self-joins on views that are aggregate queries may return the wrong result. Cherrypick of [74ef97bf51dd531a]. Leaf check-in: 2f0a564f user: mistachkin tags: branch-3.28
2019-06-03
15:10
Fix harmless compiler warning in lemon. check-in: 3a052429 user: mistachkin tags: branch-3.28
15:09
Fix harmless compiler warning in lemon. check-in: 2da0eea0 user: mistachkin tags: trunk
13:53
Fix the count-of-view optimization so that it is (correctly) disabled for a query that includes a WHERE clause or a GROUP BY clause. Cherrypick of [05897ca48a40c6771]. check-in: 583e5a0a user: mistachkin tags: branch-3.28
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tool/lemon.c.

    44     44   
    45     45   #ifdef TEST
    46     46   #define MAXRHS 5       /* Set low to exercise exception code */
    47     47   #else
    48     48   #define MAXRHS 1000
    49     49   #endif
    50     50   
           51  +extern void memory_error();
    51     52   static int showPrecedenceConflict = 0;
    52     53   static char *msort(char*,char**,int(*)(const char*,const char*));
    53     54   
    54     55   /*
    55     56   ** Compilers are getting increasingly pedantic about type conversions
    56     57   ** as C evolves ever closer to Ada....  To work around the latest problems
    57     58   ** we have to define the following variant of strlen().
................................................................................
  4915   4916   }
  4916   4917   
  4917   4918   /* Allocate a new set */
  4918   4919   char *SetNew(void){
  4919   4920     char *s;
  4920   4921     s = (char*)calloc( size, 1);
  4921   4922     if( s==0 ){
  4922         -    extern void memory_error();
  4923   4923       memory_error();
  4924   4924     }
  4925   4925     return s;
  4926   4926   }
  4927   4927   
  4928   4928   /* Deallocate a set */
  4929   4929   void SetFree(char *s)