From nobody Mon Dec 06 00:27:56 2021 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 3FA1818BE57A; Mon, 6 Dec 2021 00:27:57 +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 4J6kmD56Vgz4XWZ; Mon, 6 Dec 2021 00:27:56 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 5872521E8A; Mon, 6 Dec 2021 00:27:56 +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 1B60RuOa084616; Mon, 6 Dec 2021 00:27:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B60Ruc0084615; Mon, 6 Dec 2021 00:27:56 GMT (envelope-from git) Date: Mon, 6 Dec 2021 00:27:56 GMT Message-Id: <202112060027.1B60Ruc0084615@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 4914a141fb6c - stable/13 - libc/net/getnetnamadr.c: Mark write-only variables as unused 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 4914a141fb6c49341baf6d99cfd2c69d7f618010 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638750476; 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=CB1JqdIZw1v0s3BhqM9CX0Owe66qaSvxn8Tg5yDAV0Q=; b=AwkfVmSOl18J7k+avwqaiD/D2JgOtKJj4POGwuE0YeK75peVibXYTDfl1g2DRAUvfxI3Es 8q5J+XS89dhmRjOmsxQAgRMl7SmBozodZTfWllqZpRQPdYCvcZe1xbM7gvPPEwgOw6z0v2 udoVl4iE4QqB1w7+myFtkgg6Vz/wQNZfXNrL1I0zq5HL70A65RbgvrZAeysWVM3MxzFYFO Q9QBFbDXdGrr1bqeZmLbaomsA8MnOBbZxhgUng2f60cIfsZKikXMSimX2ulYz34lAf9yI/ oHNotamWGMTAmbrmJBBAuFmvKwlt/UFY1EjeOWPxaMzBeuJtNw0V4OnmyuA48Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638750476; a=rsa-sha256; cv=none; b=N2/yiJcK7fKpZnHOLdRObBkSA3NWTL8qZndRXHGTw6FItlAdh1IUt8ndJx/JKXLKblGsYr tF8NC1pB0QmHkeHVet+C62REPaJvdwIeWbuaF+4jTrhOxK4BvzTRwoZ2mC/q8u1vABU9tt bnqbpsttKReuXaNNoVMrfpDTZf7iXFi29c+oIHyVQhvWRlQ7QVBkG/nUCjpbVVlSs0Qjy5 a52wKnXZN4SaVhZ566PFem2RZuvWs29g2JyriwXz/9tmENNGMMkaB/vXXEzktbA8bjJEPq V4MozsJs2hr2s6GqhRPfJE/PRWZwCFGLo1csQ22sTEg3Bu6MglnRkos6C5Y24w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=4914a141fb6c49341baf6d99cfd2c69d7f618010 commit 4914a141fb6c49341baf6d99cfd2c69d7f618010 Author: Konstantin Belousov AuthorDate: 2021-11-28 03:45:52 +0000 Commit: Konstantin Belousov CommitDate: 2021-12-06 00:23:44 +0000 libc/net/getnetnamadr.c: Mark write-only variables as unused (cherry picked from commit 1c4f305d21c069ebfdab6baada0837f7ecc810ea) --- lib/libc/net/getnetnamadr.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/libc/net/getnetnamadr.c b/lib/libc/net/getnetnamadr.c index 2d9776685cf9..82ff089c1f1b 100644 --- a/lib/libc/net/getnetnamadr.c +++ b/lib/libc/net/getnetnamadr.c @@ -121,12 +121,12 @@ static int net_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *name; - uint32_t net; - int type; + char *name __unused; + uint32_t net __unused; + int type __unused; struct netent *ne; - char *orig_buf; - size_t orig_buf_size; + char *orig_buf __unused; + size_t orig_buf_size __unused; struct netent new_ne; size_t desired_size, size, aliases_size; @@ -210,9 +210,9 @@ static int net_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *name; - uint32_t net; - int type; + char *name __unused; + uint32_t net __unused; + int type __unused; struct netent *ne; char *orig_buf; size_t orig_buf_size;