From nobody Sun Mar 20 10:23:23 2022 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 933141A1EA5C; Sun, 20 Mar 2022 10:23:23 +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 4KLv3H3kSqz3kmb; Sun, 20 Mar 2022 10:23:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647771803; 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=kwuIVejc/7o8YH1hwbqk+YIjg5FWBF+e6HwEtGwMvmc=; b=mS83QZx01C0TWguYnA/7UXwiy6t6cidjMloDLirKU375A4C1yaHXtQS3AEyNHyrZJGioz6 +eiAHaN7EXn/hFycXpifhH9zc9YkVHSjL8KUWcZ70MzTxCnsUJHz3reuP7ZjA3tlTUdKCe A3RlA4uT/TMHqPEb89fXq5mERDEholorRkUEL8Gtb9wiygsw0q8XZtTX5zRxYmxGNpDpaY QD5ii3pWTdvt55eK8wyD7XRGDS53H0IQAIND3pthXrFoepTAL3QSjsISTPkFQD5DfqBsJL 3lUOafkv+8syqZBJABYJ+VZuAidiDMKqmkadz87OI30SNAatM1Tzv37ngGWf2g== 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 5FF62252BF; Sun, 20 Mar 2022 10:23:23 +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 22KANN9i035840; Sun, 20 Mar 2022 10:23:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22KANNvS035839; Sun, 20 Mar 2022 10:23:23 GMT (envelope-from git) Date: Sun, 20 Mar 2022 10:23:23 GMT Message-Id: <202203201023.22KANNvS035839@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mariusz Zaborski Subject: git: 1e9ce60a6d75 - main - cap_fileargs: silence warnings of 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: oshogbo X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1e9ce60a6d758ddf5392e96e886fd815694dd66b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647771803; 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=kwuIVejc/7o8YH1hwbqk+YIjg5FWBF+e6HwEtGwMvmc=; b=HnhAQCkC3EshC9KNqMg/ueEe6O8+5To1PtIWVM49PSGWvwR8W/LtA4HMeZH48aiOgNsei1 YB177o5r4ZcKa/l8u5gZNF3fIi8tINw3P24RK6GSRIFQNVpuJCboc7fbfwz+TLfhfyaPA0 zYADP8mO3pPu1Ipl9WYk49AgAzMd7ewjC5T4mRnD7/twd+5bbzAVr1oU50zChYcMv6x3mT 6A+q+5E9mqs/8vKt/fJ5csLkzkcF2lG0rJDxIN9JamBFl0LZUGGZY45KcZi81GItPLrJew q0TfwDpEASivr/NDeeo72xVUPBC+GcW3T3ojHiDH3nvvPN4w50BvBODjcgsSXA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647771803; a=rsa-sha256; cv=none; b=mBqS+xUVyCywkjd5vCA3WFP/stLeLO20chyTOXrLSpEr5MfaHErZhBBLbaQGbKsT5uqHis hbYec2icz9m5CszIj9yCL2kbHAbZ6iNIrY5QFlAUq8VkyHppOI7uwR1R/ZiWlTL5O9eYR6 5Qy+BkI+z86czKsNYaMnK1jPYq/kq8xVobnesuQOm7RMO2mdVWoN5zXO6LlCDjxbgtYJrM cHUlMxtADAkj2MAxC3ioQlgFyvCNsbraDF6d9HZqb+AFPYE1ua2nYc2wGrlmMQXlDFtEOA hzKK7X42qUyXEQ5u246tszvs5RDM3Z1J/Exoln25DSN52p/U5pkgeCRJMqScIQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by oshogbo: URL: https://cgit.FreeBSD.org/src/commit/?id=1e9ce60a6d758ddf5392e96e886fd815694dd66b commit 1e9ce60a6d758ddf5392e96e886fd815694dd66b Author: Mariusz Zaborski AuthorDate: 2022-03-20 10:17:31 +0000 Commit: Mariusz Zaborski CommitDate: 2022-03-20 10:22:55 +0000 cap_fileargs: silence warnings of unused variable We still want to fetch the variable just to verify that the interface is right. Reported by: pstef --- lib/libcasper/services/cap_fileargs/cap_fileargs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/libcasper/services/cap_fileargs/cap_fileargs.c b/lib/libcasper/services/cap_fileargs/cap_fileargs.c index 64ec69698165..a4b18a8ad6f2 100644 --- a/lib/libcasper/services/cap_fileargs/cap_fileargs.c +++ b/lib/libcasper/services/cap_fileargs/cap_fileargs.c @@ -275,8 +275,7 @@ fileargs_cinitnv(cap_channel_t *cas, nvlist_t *limits) { cap_channel_t *chann; fileargs_t *fa; - int serrno, ret; - int flags, operations; + int flags, ret, serrno; assert(cas != NULL); @@ -294,7 +293,7 @@ fileargs_cinitnv(cap_channel_t *cas, nvlist_t *limits) } flags = nvlist_get_number(limits, "flags"); - operations = nvlist_get_number(limits, "operations"); + (void)nvlist_get_number(limits, "operations"); /* Limits are consumed no need to free them. */ ret = cap_limit_set(chann, limits);