From nobody Mon Jan 30 17:31:57 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 4P5Fbx3g3Lz3c2TK; Mon, 30 Jan 2023 17:31: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 4P5Fbx1z46z4QYM; Mon, 30 Jan 2023 17:31:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675099917; 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=LSROoT2JELyDl3kCSy2t4u6PD/aLEnap7itfQwcvUQY=; b=vtp3sssIjTh8W2JiI/CV2p/y1vdhWNQApNSpBj/FjDDFti/897BQUzf676Bf77aVT8rsis Xy2018gUxrXmigfha9jZwksVSI5e6fdU/jgsMROc9BL+6dMfCFQjSV6f89+9W0Fiy4ovbI +3K/2Ph8WmLTIemVlPPyPjrO/RjHqOj5rxKUFaL/oHzz2U0tugJr/hNy92mMqXt+2uia/2 eq6dGTwMB2N4yS6fTjcKzpMEfu/wQ4kKBiny0ZfKpStiTJhwr4EkTiql5O4kQhULDcPtj0 X+YIyCwOoaOoBFp3VDri8sYjMMrfTBrk/Q7m38JhlAHouiGtOsEuKbt8nrDksA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675099917; 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=LSROoT2JELyDl3kCSy2t4u6PD/aLEnap7itfQwcvUQY=; b=Exg0QIUugFHv/MsWJ7WQC8XiTZxghre9TjA8v7Q7gXltiJzLUFI9k2kMGbwWiUaQQvhStd qquVODU9k+cxGjfXKoYeTw3sTJ2vuzOgdQob+vavteK3qO2WHGQfGLLKYBzrYFC+mC7XnJ Xssb7G2e1fI2VlDddKxk5XArGy9cIs7xOevbcBcawgldzPh5GP9cyoOhVeUt241QMXrR5W aMoEVQIaGoUi2HHboqLXcAF3M1Dt4LoTX02fXVTXmOYSi2RRQpjMm2csULXipdf2hRvVHR IRVZS6gFRl3DrSiQrENg/C7GMHUF9NYNWizIHRlmwSci0nAzt80SM6TwQE8CJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675099917; a=rsa-sha256; cv=none; b=Xy2DuYwT+7KFHz7jqswQyo/+8mlki8cUiToUYN6qj15nU74nvwASRN9lGHUTAdTF9oV/eK Ee9nb2hpSLQUE+d/6CLOwLMcIqgs6XUG/insi77Epk2yecG0T+j+n0ItoYAkyAmr8bnjFl vda4wpV3RVwy1qiq0SUEhdvUXvaqx+Zd/IbRvfH7Uev4i6e0rXxQaVv/IK/eInEpOjI3we fAf4PS0paxZQh85Zmpqv5CTGA77Es9MokFAs2AbvYGzUhcK0eo/WSXFj7BI399Q7gl6ZDM oJ8rjyT8wPNl6m481a6pRZLLYhruDDaCVlzNn9MwWzVYi4fTZ07GKsatn0FX1w== 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 4P5Fbx11gDzHLr; Mon, 30 Jan 2023 17:31:57 +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 30UHVv2g058862; Mon, 30 Jan 2023 17:31:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30UHVvsj058861; Mon, 30 Jan 2023 17:31:57 GMT (envelope-from git) Date: Mon, 30 Jan 2023 17:31:57 GMT Message-Id: <202301301731.30UHVvsj058861@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: 9a93b6cf3dd9 - main - zfs: Disable -Wunused-variable for environ in main in zfs_main.c. 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: 9a93b6cf3dd97ca7bcb938f87afeb523d023f807 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=9a93b6cf3dd97ca7bcb938f87afeb523d023f807 commit 9a93b6cf3dd97ca7bcb938f87afeb523d023f807 Author: John Baldwin AuthorDate: 2023-01-30 17:31:19 +0000 Commit: John Baldwin CommitDate: 2023-01-30 17:31:19 +0000 zfs: Disable -Wunused-variable for environ in main in zfs_main.c. There is an extern declaration of the global variable environ (which has no portable header that defines it) that is unused on FreeBSD due to zfs_setproctitle_init() being a stub. Reviewed by: emaste Reported by: GCC Differential Revision: https://reviews.freebsd.org/D38231 --- cddl/sbin/zfs/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cddl/sbin/zfs/Makefile b/cddl/sbin/zfs/Makefile index 0babca17e98a..aae341f13211 100644 --- a/cddl/sbin/zfs/Makefile +++ b/cddl/sbin/zfs/Makefile @@ -77,3 +77,5 @@ CFLAGS+= \ LIBADD= jail avl nvpair geom uutil zfs_core spl tpool zutil zfs m crypto LDADD+= -pthread .include + +CWARNFLAGS.zfs_main.c+= -Wno-unused-variable