From nobody Mon Nov 29 15:43:04 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 EBCFC18BC46E; Mon, 29 Nov 2021 15:43:07 +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 4J2qPQ47WFz4nLg; Mon, 29 Nov 2021 15:43:06 +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 EBABE25235; Mon, 29 Nov 2021 15:43:04 +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 1ATFh4up065747; Mon, 29 Nov 2021 15:43:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ATFh4e5065746; Mon, 29 Nov 2021 15:43:04 GMT (envelope-from git) Date: Mon, 29 Nov 2021 15:43:04 GMT Message-Id: <202111291543.1ATFh4e5065746@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 1c4f305d21c0 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 1c4f305d21c069ebfdab6baada0837f7ecc810ea Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638200587; 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=iUYC49yvvZWgyMXiRNDguOVAeJRZ07y5MipvBnCgyGQ=; b=NPsOvLcLbqIsFoHmgunKeAdvFCkxBoIbz5/rk7B+gksPiz3du+37lQo5k19i3YTr8ZkOFT uqGtyblzoqKUHz+0DE7n6380jBh8QoRWVhOFKVoVa8527iZcfIE+zD1eCboz/xV/ljSaUl ZDdt8ZjxNT3I2LEVRN0ZhFvEc3NXul5VWZC6rqLoegHYQHWc+m8UugSa6wqMszgKjyOK2w mnnyGrjA/EEk4oCXadSIYiCa0tBMabiQqQ799nOjqY5BBDQ9RPhDsTLG4G0//oqKf7Bt42 8dfxs5LqaUxzoIs2drGgYWO4mPFq6E/u8ZItARqfhDxPWMsOj9avD6aBhzO+oQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638200587; a=rsa-sha256; cv=none; b=vjdgjxjq6ildayVEvJVq3cBNS3J/1H++pG68LqkbVyxetEE32jI9tj3/ULf+xQBPPu2gh3 CS8G8Y5cmwW40h0FQgr3EROQklVYEirq1j9uz1fCcJa689vrCysldwDDVFE5G9+pV7BAQV 98uOmbSPXPINGa+BUjmrvSm8C/Y3Pw1jOLXsPg1/rw6dkOchpwtkcMy/QQ9J8M92bDaQtq Wp3euQb+NwmFqNkz9rCIwy49PLzWLu/YyTGVzr70RdpdSam+diOHITXLSZ95qUkffz1gLs gEMHBcLUsDcLwaZybWErYNXX1SVior1y+s6y5O/LJSM4PFwd8283wqL9ev6j7g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=1c4f305d21c069ebfdab6baada0837f7ecc810ea commit 1c4f305d21c069ebfdab6baada0837f7ecc810ea Author: Konstantin Belousov AuthorDate: 2021-11-28 03:45:52 +0000 Commit: Konstantin Belousov CommitDate: 2021-11-29 15:39:50 +0000 libc/net/getnetnamadr.c: Mark write-only variables as unused Sponsored by: The FreeBSD Foundation MFC after: 1 week --- 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;