]> git.tue.mpg.de Git - lopsub.git/commitdiff
lopsubgen.l: Remove some unused variables.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 25 Aug 2024 15:14:32 +0000 (17:14 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 25 Aug 2024 17:11:55 +0000 (19:11 +0200)
lopsubgen.l

index b82ad3f731ea6b7701f0efacb6556acd3ae1e25b..f5a3d3c00ee821da076ccd1584e41f353308ff10 100644 (file)
@@ -314,7 +314,7 @@ SIMPLE_STRING [[:alnum:]]([[:alnum:]]|[[:space:]])*
        yy_push_state(SC_HELP);
 }
 <INITIAL,SC_OPTION,SC_COMMAND>\[[[:space:]]*section[[:space:]]+{SIMPLE_STRING}[[:space:]]*\] {
-       int sect_num = suite.num_sections++;
+       suite.num_sections++;
        suite.sections = realloc(suite.sections,
                 suite.num_sections * sizeof(*suite.sections));
        CURSECT.name.orig = parse_simple_string();
@@ -357,9 +357,7 @@ SIMPLE_STRING [[:alnum:]]([[:alnum:]]|[[:space:]])*
 }
 
 <SC_COMMAND,SC_OPTION>\[[[:space:]]*option[[:space:]]+{IDENTIFIER}[[:space:]]*\] {
-       int option_num = CURCMD.num_options++;
-       struct lsg_option *opt;
-
+       CURCMD.num_options++;
        CURCMD.options = realloc(CURCMD.options,
                CURCMD.num_options * sizeof(*CURCMD.options));
        memset(&CUROPT, 0, sizeof(CUROPT));