From nobody Tue Jun 20 16:29:15 2023 X-Original-To: dev-commits-src-all@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 4QlsXX02y5z4gJTJ; Tue, 20 Jun 2023 16:29:16 +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 4QlsXW6V2Xz4KQZ; Tue, 20 Jun 2023 16:29:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278555; 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=OSrGG8IlBQjBg7Tcm1FP2rSSAR2ANJmAZoTyg+8UZW4=; b=uSexXqIcn2LeEvwZ1wPpCy/AYRk+bxt14RHmsXOg/YYgjCBxM6+NgSX63PHhzLnvgMPuvR 0r+k51uLuxfrd9FS/v694TZzgqa04B24Hq3EdWx1K2KVmCU+Z+f8FOILaHdo+jSCEtfDnI lvzH2TjK1+cR45rzQ7HNmHZZxBya9Hb5cTo3WucAnBCeLlYqyiuXzufDQ9FI6Ufwz1beVC SReO66siSIENunY+O+YVltMlHqx3SRk/pIpuSbsmfkGQQcjrPmFEJIVmFTpKPlCZ6tZCDN Dn8H9eGKTW4XwurFb5K9YmLQEsOiTb8vg58lRBBPc+WGSS3pjnNgkO8s9BaW7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278555; 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=OSrGG8IlBQjBg7Tcm1FP2rSSAR2ANJmAZoTyg+8UZW4=; b=W8lWE88qpDT27vrP+fqXMOJGtZosmdIC8hWePQXR6AMoHKvg5jQTH4/CMqNhs8GJxlHI3A G0Po2NVxN8E7vpnDRPsOhjwWQylM4Mo8KmdBEJnzMoprucuIoRiJb2U9q9UCLJBLCF5N/s jEIdtHkMeIr8KVtPxfsCkOWtzPRdT7PJ37jDgQH+lMXWQIHX1EZjK4PCEJEPx/OwB/zwgx xJiHNNE7jHGTOYEhtjVld/uTdSdInrdtlszUyHgbh69MYiiTl8p3ijnQnwQiYP6xQAJT6g B/6WUEhbqa4nhoW9deLniUlVRJkejmYFri/5qKKbLlxaJrIS5E1i8rymcjpuRA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687278555; a=rsa-sha256; cv=none; b=NbqVqkJYoFGdzj3/yJQhqryb4Eyp42uweg2RsoFJymMUrMSWP2eUbAERBLfxfRyvSfXg9G /ye6logFQ3TqkjYlS/AqMEYDtiO9gJQJGU8HWoyBw91KfhNX5QTBU+oUc3lnZUmeGwkf+T d2Y+fis8aRSKrLcI8fcYylI8SlDc1pLZvWWRai3GZqxkK7ry9qs6DVPlLZxskxGq+QTINz wztqhWWLSrfr8XL3Y055lioz19cAnm6ZfttesN2wabeJb5oFjUe6t0F8C4j+n6i0Q5FZXt +BWqIEuZM82tWGrdLfuC7a2VDaX2UbC2R8tNBPut2m7P7ZxCVm1zT5RlUuD6kg== 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 4QlsXW5FWTz15YJ; Tue, 20 Jun 2023 16:29:15 +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 35KGTFZc045039; Tue, 20 Jun 2023 16:29:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35KGTF91045038; Tue, 20 Jun 2023 16:29:15 GMT (envelope-from git) Date: Tue, 20 Jun 2023 16:29:15 GMT Message-Id: <202306201629.35KGTF91045038@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: b07549f3c156 - main - lib9p: Remove set but unused sockets[] array from l9p_start_server. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: b07549f3c15637af6064d2f52b572f239f5ba870 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=b07549f3c15637af6064d2f52b572f239f5ba870 commit b07549f3c15637af6064d2f52b572f239f5ba870 Author: John Baldwin AuthorDate: 2023-06-20 16:28:59 +0000 Commit: John Baldwin CommitDate: 2023-06-20 16:28:59 +0000 lib9p: Remove set but unused sockets[] array from l9p_start_server. Reported by: GCC --- contrib/lib9p/transport/socket.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/contrib/lib9p/transport/socket.c b/contrib/lib9p/transport/socket.c index fbba97c135cd..a78d8a6bfbea 100644 --- a/contrib/lib9p/transport/socket.c +++ b/contrib/lib9p/transport/socket.c @@ -73,7 +73,6 @@ l9p_start_server(struct l9p_server *server, const char *host, const char *port) struct kevent kev[2]; struct kevent event[2]; int err, kq, i, val, evs, nsockets = 0; - int sockets[2]; memset(&hints, 0, sizeof(hints)); hints.ai_family = PF_UNSPEC; @@ -98,7 +97,6 @@ l9p_start_server(struct l9p_server *server, const char *host, const char *port) continue; } - sockets[nsockets] = s; EV_SET(&kev[nsockets++], s, EVFILT_READ, EV_ADD | EV_ENABLE, 0, 0, 0); listen(s, 10);