From nobody Fri Jul 29 18:47:29 2022 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 4Lvc2V1fKLz4Y1d8; Fri, 29 Jul 2022 18:47:30 +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 4Lvc2T4wqrz3phW; Fri, 29 Jul 2022 18:47:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120449; 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=SG5CtZPcCkES0eY7LdYNAAd90Y7MnbiTvt+dwrvXywM=; b=j2O2O0fpy2QwRSMDPnyJifiEFNT8T3g/ZjI2Aib2f0XJUfBl0cXO/lIY5nS7KfOs/JScD6 sG/fqNElCphrMQdGeaCThTvkBjn3eWKxJBS1k9WYihvGObmrKDPMRTBS/nJv8caH8wV4ZJ Jqzr5HFfASZ1g6N9sAlbiDSb+4U14GivtOJFtkJXfjL8pB2AzCmL1IguUhlBR5+EqGIq6V fVdwlI9FSIx2g2jdoGupnxWNjJgFGcDZoGldy4r0+Jz7udzXnQ8eGO9wKNs63CGPETVupg iQkRz8kd+f9QCObL1sSavv9Gs7BJb0mkbmsaSfFANDDumZ/erM9mXA65XF8FoA== 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 4Lvc2T42xVzlxs; Fri, 29 Jul 2022 18:47:29 +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 26TIlTm2024170; Fri, 29 Jul 2022 18:47:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TIlTpt024169; Fri, 29 Jul 2022 18:47:29 GMT (envelope-from git) Date: Fri, 29 Jul 2022 18:47:29 GMT Message-Id: <202207291847.26TIlTpt024169@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 0ca977b155ff - stable/13 - Suppress unused variable warning for zfs_fm.c 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 0ca977b155ff025d2b9dbd49693b95066581271b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659120449; 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=SG5CtZPcCkES0eY7LdYNAAd90Y7MnbiTvt+dwrvXywM=; b=XoqfjefyGQreISiVXKz1xv6V6Pevlq2nIt/RHEWL8/bgvT1CV5P/2GWlsf9zoga8WcIUbg eJFq0nJvb38RtlesXDwS/BFjR8XYGXenH4KTQ/WrPbm09UglewPjuoGI/JNXalor6Rf4RK EUcGHuhYbs/De8ao7AsVKxrae9teQ+bITXe/+I+sQSmPPokdkswCrh0WeKDfW0HcEkFUyP oxsqNeG7hbNDI+vtK/2cuRHJMUStLn1QcTmdlEl/hp3tDDRDw32FOurXL+9BGDFrlYCwTJ cXq+sSscF6Cqp6EGkzMHc99YlnTxo0TJSNaLSL6J404G5NpuFDSAaDLDL4EsTw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659120449; a=rsa-sha256; cv=none; b=xzwb3fyiHy6he/C3cHwEce8Nn+R7rG/IvkAXhvY6bQowFWBMoc+5VU7q04dReabJNSmk8E /BHd2ERVLQY5aZwM2Pe+j9WUrAEVrdfcZO/wR+ZvMKalnaCpMziFTQBVmYvXcxcjqXUP5r l72MSBMsQrlwE8lffB7aljUfLSExGxIS85KOJDNW9JjoW2X8Jn89MQTLhgZK5U37sgf2wG Ln7vKa815z3scp2lBZAf5sSL8yh8EnR9cN48fDJ2Fdw/UCjzLKeToJySxD9+qbw48f0NLp ukxv/kk+tcF9wAeZ89LMlHNiCrt3jSDy4HtzS+ZSpeoA+xETchhbqfdOx/ApgA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=0ca977b155ff025d2b9dbd49693b95066581271b commit 0ca977b155ff025d2b9dbd49693b95066581271b Author: Dimitry Andric AuthorDate: 2022-07-26 20:07:42 +0000 Commit: Dimitry Andric CommitDate: 2022-07-29 18:29:56 +0000 Suppress unused variable warning for zfs_fm.c With clang 15, the following -Werror warning is produced: sys/contrib/openzfs/module/zfs/zfs_fm.c:256:6: error: variable 'cnt' set but not used [-Werror,-Wunused-but-set-variable] int cnt = 0; ^ The 'cnt' variable does not seem to be used for anything, but since this is contributed code, suppress the warning instead. MFC after: 3 days (cherry picked from commit e726e7105685f99b066fcc3908c07157599cd290) --- sys/conf/files | 2 +- sys/modules/zfs/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/conf/files b/sys/conf/files index a8f79140d7d9..d84810bf4e4d 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -342,7 +342,7 @@ contrib/openzfs/module/zfs/zcp_set.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zcp_synctask.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zfeature.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zfs_byteswap.c optional zfs compile-with "${ZFS_C}" -contrib/openzfs/module/zfs/zfs_fm.c optional zfs compile-with "${ZFS_C}" +contrib/openzfs/module/zfs/zfs_fm.c optional zfs compile-with "${ZFS_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" contrib/openzfs/module/zfs/zfs_fuid.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zfs_ioctl.c optional zfs compile-with "${ZFS_C}" contrib/openzfs/module/zfs/zfs_log.c optional zfs compile-with "${ZFS_C}" diff --git a/sys/modules/zfs/Makefile b/sys/modules/zfs/Makefile index f46f08b2d5d5..6321db2381d8 100644 --- a/sys/modules/zfs/Makefile +++ b/sys/modules/zfs/Makefile @@ -330,7 +330,7 @@ CFLAGS.vdev_raidz_math_sse2.c= -Wno-cast-qual -Wno-duplicate-decl-specifier CFLAGS.zap_leaf.c= -Wno-cast-qual CFLAGS.zap_micro.c= -Wno-cast-qual CFLAGS.zcp.c= -Wno-cast-qual -CFLAGS.zfs_fm.c= -Wno-cast-qual +CFLAGS.zfs_fm.c= -Wno-cast-qual ${NO_WUNUSED_BUT_SET_VARIABLE} CFLAGS.zfs_ioctl.c= -Wno-cast-qual CFLAGS.zil.c= -Wno-cast-qual CFLAGS.zio.c= -Wno-cast-qual