rxkad: Fix unused-but-set-variable in test/stress.c

clang-19 is flagging a warning/error in rxkad/test/stress.c as
unused-but-set-variables

 stress.c:51:9: error: variable 'nonoauth' set but not used [-Werror,-Wunused-but-set-variable]
    51 |     int nonoauth = 0;
       |         ^
 1 error generated.

The variable nonoauth is initialized and conditionally incremented, but
is not used elsewhere.

Remove the nonoauth variable.

Change-Id: I9a97a3980e5b6ff462f860d7bdae4ee8d7b22971
Reviewed-on: https://gerrit.openafs.org/15984
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
This commit is contained in:
Cheyenne Wills 2024-12-11 10:59:01 -07:00 committed by Michael Meffie
parent 14777a2db4
commit 7ad0bb606b

View File

@ -48,12 +48,11 @@ static char *whoami;
static int static int
StringToAuth(const char *authname) StringToAuth(const char *authname)
{ {
int nonoauth = 0;
if (strcmp(authname, "rxkad") == 0) if (strcmp(authname, "rxkad") == 0)
return rxkad_clear; return rxkad_clear;
if (strcmp(authname, "rxkad_")) { if (strcmp(authname, "rxkad_")) {
if (strncmp(authname, "rxkad_", 6) == 0) if (strncmp(authname, "rxkad_", 6) == 0)
nonoauth++, authname += 6; authname += 6;
if (strcmp(authname, "clear") == 0) if (strcmp(authname, "clear") == 0)
return rxkad_clear; return rxkad_clear;
if (strcmp(authname, "auth") == 0) if (strcmp(authname, "auth") == 0)