From nobody Tue Jun 20 16:29:32 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QlsXr70Nbz4gJrP; Tue, 20 Jun 2023 16:29:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QlsXr5Vztz4LMV; Tue, 20 Jun 2023 16:29:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278572; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hFhFfhgHZuoDVBRs/RKVOJqTdsGAo54UphPQyCAtt+g=; b=ym91g0LL0iCI/z7XArg7/8XeEkfnjGsY/cwyJ4rHh2825r13WMnI9piuvWgpw+u8YGYnxS RgkAcbUgSh5hd1Gwv+9YKgKuztvK6itPmlY4ZEHpgybgdp1HQqd5THurhYbscApWy76SNj YoGmW59CV0pOVuBKt/PKp36WdURfLRaICmmaCRW8+PZ8XOKIwcH1rm446xHgH0lr2AxZTh 5EGY3AaLNRiI+k/7or4A3kMhRDhaELq3lmSzAzq2DoToQAX+9Xxz4ztFNJ1GN6HlHWCvcJ QVJfLiEKXc5FBs68nzmQWsW6Z5b+4th8f4mHD/u81yCaXwXAkm68XoEqwRh6xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278572; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hFhFfhgHZuoDVBRs/RKVOJqTdsGAo54UphPQyCAtt+g=; b=ubqKD99/zrlaaGuqbguY5w5CNqAbh2vdcG/Y7uS6FhwFjUlOrcBKdyStX8PZW8DHQxprl7 YOesBYx8AFYAAL7Qu9NRDI+eFADCmw15vCZp0KIqwLTAQUBOzP3td0EoB8NQiLjMp1xb0F z5QUYPFnr9s9qZLeCM6S5ZfmOH5gibB6LAV6b6ao+a7bW7uzmmSe9HwRdSnHFgtj74o8Yj FtSQX2otl+2sk8hfYlmkCSLK5eaEkofTgO4tWnk0fwf47kf06qof+UWxKNfpQ5ps18HYdW 7lM27P9tWGo3sph29//PqSiGOycctPS9EVEGHNOgT9QejRYaNUpXVMjGLxpg7w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687278572; a=rsa-sha256; cv=none; b=sNMnGnZ/G/zwpmTv/fDg/K6ojLG6Hk56dC5O6HIgbesEEkw7Z5xTC0BYq2y1gto4Oogx0a OS5CGpaRlL5WZfrgVtCsNu+94GOYK5cCJvcXHCPRJDDKdmOXxwqifaopRvfd3YsAyklGBP QiOXX7phdE+DtbNRDas4UAsLBZA8K437MlABGC66iGo/D2/TOSfAFACoLiRvIxZMeAft86 x5/dlj/KByNel1RJHVtCwDkj3uNowtI9zYlnonvGq8Vf8OTfCieS0i77tetpanMcwUsNG3 tegA5rNVZfvj0N/3DVTVrFRn+/sz309zKMT4iyM8hKvpI2CeM3CxpWnFSpWUqg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QlsXr4XR7z166W; Tue, 20 Jun 2023 16:29:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35KGTWqC045344; Tue, 20 Jun 2023 16:29:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35KGTWiJ045343; Tue, 20 Jun 2023 16:29:32 GMT (envelope-from git) Date: Tue, 20 Jun 2023 16:29:32 GMT Message-Id: <202306201629.35KGTWiJ045343@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 5edeed4360a7 - main - libgssapi: Remove a set but unused variable. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5edeed4360a7e492cbca71ae7d55120951f8fc53 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=5edeed4360a7e492cbca71ae7d55120951f8fc53 commit 5edeed4360a7e492cbca71ae7d55120951f8fc53 Author: John Baldwin AuthorDate: 2023-06-20 16:29:00 +0000 Commit: John Baldwin 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: