mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
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:
parent
14777a2db4
commit
7ad0bb606b
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user