From nobody Tue Jul 26 20:10:04 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 4Lsp185rP2z4X2vv; Tue, 26 Jul 2022 20:10:04 +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 4Lsp184KFVz3KN9; Tue, 26 Jul 2022 20:10:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658866204; 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=CcFcdKe/dUIP0LBF8f/wOEHSB9XGyq817Yqz+EMY0h8=; b=QTk5R+FL90rbAAqQ+q6i+vJpbSZKqx1vucWl2mFNBAPDb/qEnhqjGDXLK/EtQDKUacw25P ZSrh3z8OHlG19wC6q246iBmhxFsqP1z67nmCBF0ZxDtVilXoGasEhR1c+km+Fw93TXguVz fAbRM4rLom0WHRMAjYbBWX7PuZt64Y4tX2VCxxJ6+cmdvrig7DprTH7zEGQ+SnleIFYjFd B2rI/XXds3WJchM0DUg2D/rW+dj9UqBTwk9aPfD1r6uprVH4QJaFT5cEgvQG0V8GqvvEZY CSlJ0V6H2i/Fd3Jeye0OBMMDx2lQe2Z9XtJT04paz/kOnIj1XKSFxMMxy6vdoQ== 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 4Lsp183R26zqLW; Tue, 26 Jul 2022 20:10: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 26QKA4Wb078557; Tue, 26 Jul 2022 20:10:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26QKA4ZP078554; Tue, 26 Jul 2022 20:10:04 GMT (envelope-from git) Date: Tue, 26 Jul 2022 20:10:04 GMT Message-Id: <202207262010.26QKA4ZP078554@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: e726e7105685 - main - 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/main X-Git-Reftype: branch X-Git-Commit: e726e7105685f99b066fcc3908c07157599cd290 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658866204; 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=CcFcdKe/dUIP0LBF8f/wOEHSB9XGyq817Yqz+EMY0h8=; b=V/TiGPV7oELPWq3c8GhXoZYKore+sf65MtN4enfi4PNu4oK3rcB49NuSzACcAJqdGEDhMw J4BzGQ2PdzyImBjwJXTK5PqGwO/ZG+m8bboqz/Sply4oW2WpPFCR23dLHBHueaGhXCZtoI P22Sn4n8kGPr2xpbh9HibeKB9FRAVQ1i1b/WSuL5qn9KI97gMQApXc5GtqIHYQCumSGyhe W6OTjsPyQoA7P/g6goOCtb9uNk7N447ZDJsYrkGq8FLwvmZe82/+DUme7LP+JA+QTs3Cvq iU/1eDQ9+uc+CNDqHh37jgYE2CM/+EVAha27S/TuEtd9yPJzdCge8wHYA3T2gw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658866204; a=rsa-sha256; cv=none; b=MVQ0INFR9J4dneogcITLHaxDYp+FoBbrdbYgPjaxPJ/z/3NqeUKc9znwZ+pl+UnpH1dPXy lW7s9Un1fJrwZfBG0YfVIpdL6AfTlWm0KEFBkFqhm18rVXqhWRbSAp2uMEIVblDbUe+taJ MFg9SrPT6HmuzfmyQaCkEqfDodISectaPiOlJ3mtFzzhamS4a+45HwVOIGw0HuSGsdtHmi wyKUpAal/AX4XfEMK3mNgrQDNIvZixaPrA3fkPYZuuDj51CajgC0oceY7Yw67LLKqTLbnh nNji7NiEqR2N2JswNZbGfIHVSvIDsHTA0UMIRSwoTAEmdIBI+jfwOGOp4+UGYQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=e726e7105685f99b066fcc3908c07157599cd290 commit e726e7105685f99b066fcc3908c07157599cd290 Author: Dimitry Andric AuthorDate: 2022-07-26 20:07:42 +0000 Commit: Dimitry Andric CommitDate: 2022-07-26 20:08:14 +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 --- 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 c1d91886ff05..0bfd6c147203 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -350,7 +350,7 @@ 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_chksum.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 9f54e60f6026..2c931e19a0d6 100644 --- a/sys/modules/zfs/Makefile +++ b/sys/modules/zfs/Makefile @@ -388,7 +388,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