Commit 1caa35f4fb for openssl.org
commit 1caa35f4fbf8a968a33df8eccf1675a908889415
Author: Neil Horman <nhorman@openssl.org>
Date: Thu Sep 10 13:49:36 2026 -0400
Fix set but unsued variable in lib/opt.c
https://github.com/openssl/openssl/actions/runs/34494520852/job/102982686286
CI is failing because we have a varaible in opt.c that is set but never
used.
Just remove it.
Reviewed-by: Andrew Dinh <andrewd@openssl.org>
Reviewed-by: Frederik Wedel-Heinen <fwh.openssl@gmail.com>
MergeDate: Sat Sep 12 13:18:16 2026
(Merged from https://github.com/openssl/openssl/pull/32787)
diff --git a/apps/lib/opt.c b/apps/lib/opt.c
index dbac48668a..f28eeaa4f0 100644
--- a/apps/lib/opt.c
+++ b/apps/lib/opt.c
@@ -37,7 +37,6 @@ const char OPT_PARAM_STR[] = "-P";
/* Our state */
static char **argv;
-static int argc;
static int opt_index;
static char *arg;
static char *flag;
@@ -162,7 +161,6 @@ char *opt_getprog(void)
char *opt_init(int ac, char **av, const OPTIONS *o)
{
/* Store state. */
- argc = ac;
argv = av;
opt_begin();
opts = o;