git: 5edeed4360a7 - main - libgssapi: Remove a set but unused variable.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 20 Jun 2023 16:29:32 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=5edeed4360a7e492cbca71ae7d55120951f8fc53

commit 5edeed4360a7e492cbca71ae7d55120951f8fc53
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-06-20 16:29:00 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-06-20 16:29:00 +0000

    libgssapi: Remove a set but unused variable.
    
    Reported by:    clang -Wunused-but-set-variable
---
 lib/libgssapi/gss_mech_switch.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lib/libgssapi/gss_mech_switch.c b/lib/libgssapi/gss_mech_switch.c
index df4b7a9b8ea5..ddecabb9d823 100644
--- a/lib/libgssapi/gss_mech_switch.c
+++ b/lib/libgssapi/gss_mech_switch.c
@@ -190,7 +190,6 @@ _gss_load_mech(void)
 	char		*p;
 	char		*name, *oid, *lib, *kobj;
 	struct _gss_mech_switch *m;
-	int		count;
 	void		*so;
 	const char	*(*prefix_fn)(void);
 
@@ -208,7 +207,6 @@ _gss_load_mech(void)
 		return;
 	}
 
-	count = 0;
 	while (fgets(buf, sizeof(buf), fp)) {
 		if (*buf == '#')
 			continue;
@@ -290,7 +288,6 @@ _gss_load_mech(void)
 		OPTSYM(pname_to_uid);
 
 		SLIST_INSERT_HEAD(&_gss_mechs, m, gm_link);
-		count++;
 		continue;
 
 	bad: