Comment out unused variables (fix compile warnings)
Change-Id: I6cb38a8fa27f9f798235c9acf830873f8b47e24b
diff --git a/tools/genperf/genperf.c b/tools/genperf/genperf.c
index c3cfa76..7883b48 100644
--- a/tools/genperf/genperf.c
+++ b/tools/genperf/genperf.c
@@ -262,9 +262,9 @@
int need_struct = 0;
int have_struct = 0;
int go_keywords = 0;
- int ignore_case = 0;
- int compare_strncmp = 0;
- int readonly_tables = 0;
+ //int ignore_case = 0;
+ //int compare_strncmp = 0;
+ //int readonly_tables = 0;
slist usercode, usercode2;
keyword_list keywords;
sval *sv;
@@ -394,11 +394,11 @@
}
if (strncmp(&line[1], "ignore-case", 11) == 0) {
- ignore_case = 1;
+ //ignore_case = 1;
} else if (strncmp(&line[1], "compare-strncmp", 15) == 0) {
- compare_strncmp = 1;
+ //compare_strncmp = 1;
} else if (strncmp(&line[1], "readonly-tables", 15) == 0) {
- readonly_tables = 1;
+ //readonly_tables = 1;
} else if (strncmp(&line[1], "language=", 9) == 0) {
ch = &line[10];
i = 0;
diff --git a/tools/re2c/code.c b/tools/re2c/code.c
index 3e4b371..08127e9 100644
--- a/tools/re2c/code.c
+++ b/tools/re2c/code.c
@@ -797,7 +797,7 @@
/* mark backtracking points */
for(s = d->head; s; s = s->next){
- RegExp *ignore = NULL;/*RuleOp*/
+ //RegExp *ignore = NULL;/*RuleOp*/
if(s->rule){
for(i = 0; i < s->go.nSpans; ++i)
if(s->go.span[i].to && !s->go.span[i].to->rule){
@@ -807,7 +807,7 @@
Action_new_Save(s, saves[s->rule->d.RuleOp.accept]);
continue;
}
- ignore = s->rule;
+ //ignore = s->rule;
}
}