aboutsummaryrefslogtreecommitdiff
path: root/tool/lemon.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2020-09-16 16:55:56 +0000
committerdrh <drh@noemail.net>2020-09-16 16:55:56 +0000
commit18ef40e563e12e58402f87e5e5710001005da0d8 (patch)
treec9c55693c6349e2d66839cd9290c7621f6d6b99e /tool/lemon.c
parentb5a69238b42fff179af63a3d88ec8f3bf135543b (diff)
downloadsqlite-18ef40e563e12e58402f87e5e5710001005da0d8.tar.gz
sqlite-18ef40e563e12e58402f87e5e5710001005da0d8.zip
Fix harmless compiler warnings in Lemon.
FossilOrigin-Name: 6c94ba4b1c16b676978808dcb24f63c2f22915af5dcfe9f635c037011affcf4b
Diffstat (limited to 'tool/lemon.c')
-rw-r--r--tool/lemon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tool/lemon.c b/tool/lemon.c
index a18f0a262..82531362e 100644
--- a/tool/lemon.c
+++ b/tool/lemon.c
@@ -1591,7 +1591,7 @@ static struct rule *Rule_merge(struct rule *pA, struct rule *pB){
** Sort a list of rules in order of increasing iRule value
*/
static struct rule *Rule_sort(struct rule *rp){
- int i;
+ unsigned int i;
struct rule *pNext;
struct rule *x[32];
memset(x, 0, sizeof(x));
@@ -1625,8 +1625,7 @@ static void stats_line(const char *zLabel, int iValue){
}
/* The main program. Parse the command line and do it... */
-int main(int argc, char **argv)
-{
+int main(int argc, char **argv){
static int version = 0;
static int rpflag = 0;
static int basisflag = 0;
@@ -1669,6 +1668,7 @@ int main(int argc, char **argv)
struct lemon lem;
struct rule *rp;
+ (void)argc;
OptInit(argv,options,stderr);
if( version ){
printf("Lemon version 1.0\n");
@@ -2266,7 +2266,7 @@ static void parseonetoken(struct pstate *psp)
psp->preccounter = 0;
psp->firstrule = psp->lastrule = 0;
psp->gp->nrule = 0;
- /* Fall thru to next case */
+ /* fall through */
case WAITING_FOR_DECL_OR_RULE:
if( x[0]=='%' ){
psp->state = WAITING_FOR_DECL_KEYWORD;