/ Check-in [3a05242953]
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: 2f0a564f6e user: mistachkin tags: branch-3.28
2019-06-03
15:10
Fix harmless compiler warning in lemon. check-in: 3a05242953 user: mistachkin tags: branch-3.28
15:09
Fix harmless compiler warning in lemon. check-in: 2da0eea02d 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: 583e5a0ab6 user: mistachkin tags: branch-3.28
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to tool/lemon.c.

44
45
46
47
48
49
50

51
52
53
54
55
56
57
....
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929

#ifdef TEST
#define MAXRHS 5       /* Set low to exercise exception code */
#else
#define MAXRHS 1000
#endif


static int showPrecedenceConflict = 0;
static char *msort(char*,char**,int(*)(const char*,const char*));

/*
** Compilers are getting increasingly pedantic about type conversions
** as C evolves ever closer to Ada....  To work around the latest problems
** we have to define the following variant of strlen().
................................................................................
}

/* Allocate a new set */
char *SetNew(void){
  char *s;
  s = (char*)calloc( size, 1);
  if( s==0 ){
    extern void memory_error();
    memory_error();
  }
  return s;
}

/* Deallocate a set */
void SetFree(char *s)







>







 







<







44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
....
4916
4917
4918
4919
4920
4921
4922

4923
4924
4925
4926
4927
4928
4929

#ifdef TEST
#define MAXRHS 5       /* Set low to exercise exception code */
#else
#define MAXRHS 1000
#endif

extern void memory_error();
static int showPrecedenceConflict = 0;
static char *msort(char*,char**,int(*)(const char*,const char*));

/*
** Compilers are getting increasingly pedantic about type conversions
** as C evolves ever closer to Ada....  To work around the latest problems
** we have to define the following variant of strlen().
................................................................................
}

/* Allocate a new set */
char *SetNew(void){
  char *s;
  s = (char*)calloc( size, 1);
  if( s==0 ){

    memory_error();
  }
  return s;
}

/* Deallocate a set */
void SetFree(char *s)