Commit 4bd9eaf7 authored by Lev Walkin's avatar Lev Walkin

force use variable

parent 0a3bf61d
......@@ -492,8 +492,16 @@ emit_alphabet_check_loop(arg_t *arg, asn1cnst_range_t *range) {
if(range) {
OUT("if(!(");
int produced_something =
emit_range_comparison_code(arg, range, "cv", 0, natural_stop);
if(produced_something) {
OUT(")) return -1;\n");
} else {
OUT(")) {\n");
OUT("\t(void)cv; /* Unused variable */\n");
OUT("\treturn -1;\n");
OUT("}\n");
}
} else {
OUT("if(!table[cv]) return -1;\n");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment