From nobody Fri Apr 08 00:04:03 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 13DC61A88E3A; Fri, 8 Apr 2022 00:04:06 +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 4KZJPw2zmBz4l9G; Fri, 8 Apr 2022 00:04:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649376244; 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=xdI4LlAe8FwF91qeA+H4Ug352YChPRfzj4EPmyqyC8Q=; b=Pwuh/v8Lxpwmlc7JNeByJKnOyWWVIpF8EiMFnHkWD48gwC+X4jArZzm07UN0NcMfHRiSxe VNTtFtDXLAjaymyZ688T90GHdrgeBNZgPgdOeaBzlvNI8VF7WjKNhxYFVSG1WxBypgAoRU e5HWA0DRPTTixHTh5IhhpajH04I5qeIIueOyGmM7iOHnxcYzukEvBslrFLmcpjZJaKvLnO fRiUMclwEPD+x9CiYObprpePNePIXEYSWr1WWU8UdCDi3JnYUOVx0+7n5xK4J3Efer0g1K 2S1TBuD+pldsppJklj7jYN3CianBOo0dleQSKI/TD6LaRyETym6DfqdeVwYViQ== 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 E6B5D1A602; Fri, 8 Apr 2022 00:04:03 +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 238043iU087172; Fri, 8 Apr 2022 00:04:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 238043GV087171; Fri, 8 Apr 2022 00:04:03 GMT (envelope-from git) Date: Fri, 8 Apr 2022 00:04:03 GMT Message-Id: <202204080004.238043GV087171@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: 0c348b97eb05 - main - zfs: Disable -Wunused-but-set-variable for a few files in zstd. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0c348b97eb051b22f3ee956f17c332eaacb63d59 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649376244; 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=xdI4LlAe8FwF91qeA+H4Ug352YChPRfzj4EPmyqyC8Q=; b=JzLhfvhJprI2//31joHR0lwSAWH/Us9OMu8pvzocXMVkQ7+veSYU8kWGxEV3Dy0RIU101P Yzzm1iAwtd51D5/I1Kc1c+Lp/z7q+BpvzxzzQ7PmktpL2UV4b6lZpbTvoip3y0xc2JodZF 4GHcTz6V20h9ZYp5wimcYpProzciP6TZr6hUNoLSrMK9Mn10XvB0It23YMHDJ/VMfJl7wL +k6PTHQ+oxHHUZ/xhxXSzcnISeW5SqnJ+vZD2eQ/LvrinGU8EgjYyCE3p2qG3giicChJcs jJrVVUJmXjcm+MfVhrfolxInWiQBywHtwzFAbredFOTwtPQhi2AIYjVFn4x/cA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649376244; a=rsa-sha256; cv=none; b=KKGHxjRKau8RP7C/xuRQS0+hOF6zNRNbV5GG1mfQNt+9NzCqxZ899i0ZLp1Y+87WZuIW7G slJH3Zz5XLDZamnLWvnYbL7vTo5mrkRHmSXqclU4/DLZECtf1Is64xALPk4BdhTXdFry6r qJ0aZ0JtAHRzijbvvd2eDmY+yIKcNDXPjbTXPpiEHiPHGFo6VmUnnRqBsAUJlN2p+/WSQ9 HD9WIZW03nE8zgB9m68V7r+o5WKrkKvs4j0YoPSCi8npt7OUoHZCCBEcUUVfN7qQ6Moc4C x0Hm6TG77Ks9Z2+0myIBJ8ZmjS/ziqyjfNpiitLyrHyvyL1Cd5JnePRBuAXSVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=0c348b97eb051b22f3ee956f17c332eaacb63d59 commit 0c348b97eb051b22f3ee956f17c332eaacb63d59 Author: John Baldwin AuthorDate: 2022-04-08 00:01:29 +0000 Commit: John Baldwin CommitDate: 2022-04-08 00:01:29 +0000 zfs: Disable -Wunused-but-set-variable for a few files in zstd. FSE_createCTable raises the warning because we stub out malloc() to NULL in the kernel, so the passed in size is unused. ZSTD_seqDecompressedSize has a variable whose value is only used in assertions. NB: These files are missing corresponding entries in sys/conf/files. --- sys/modules/zfs/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/modules/zfs/Makefile b/sys/modules/zfs/Makefile index c0e258691339..086d10a23730 100644 --- a/sys/modules/zfs/Makefile +++ b/sys/modules/zfs/Makefile @@ -421,6 +421,7 @@ CFLAGS.zstd.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.entropy_common.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.error_private.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.fse_compress.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL} +CFLAGS.fse_compress.c+= ${NO_WUNUSED_BUT_SET_VARIABLE} CFLAGS.fse_decompress.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.hist.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.huf_compress.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL} @@ -433,6 +434,7 @@ CFLAGS.zstd_compress.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.zstd_compress_literals.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.zstd_compress_sequences.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.zstd_compress_superblock.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL} +CFLAGS.zstd_compress_superblock.c+= ${NO_WUNUSED_BUT_SET_VARIABLE} CFLAGS.zstd_ddict.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.zstd_decompress.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL} CFLAGS.zstd_decompress_block.c+= ${NO_WBITWISE_INSTEAD_OF_LOGICAL}