The branch main has been updated by jhb:

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

commit 5edeed4360a7e492cbca71ae7d55120951f8fc53
Author:     John Baldwin <[email protected]>
AuthorDate: 2023-06-20 16:29:00 +0000
Commit:     John Baldwin <[email protected]>
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:

Reply via email to