From nobody Mon Feb 13 17:15:35 2023 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 4PFrZb4L6lz3rVCd; Mon, 13 Feb 2023 17:15:35 +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 4PFrZb3s0Cz3mcq; Mon, 13 Feb 2023 17:15:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676308535; 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=j2uNWKZS6gwMFmESi8IeLHVawv/v4VxVhgNc1qLU2M8=; b=u33UP6+VnOC0iHupF8lCrrG6DMVcCtqI8LM8DVojhINcbWt63nCe0g1MSZt+r3/gRG8BR3 8z31LEONSvWT19A8KRBqzkFGLiiM4axWq7W9dfAlZ5Q6HpLWO3kBbGAX4fgZhX673qkcZP x6+YQGWgT57w4GTo6sOzWpEdXiUp6XtzXLkiIJiWp6AKruWJVgxhmW2vXF88V/dfxWwQA5 sgiWUw3r5R7GoQr85ROKroLQZ+eTo2vdwF5vpuxHKNlHf/8WMetSyURxywaJeiqN8A4Iv9 U7lZU56dJAyPmkUmWzY+JtXCjoXlz5eUtUn7lxnhDKSYS80NrpuMFpxQ9th8tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676308535; 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=j2uNWKZS6gwMFmESi8IeLHVawv/v4VxVhgNc1qLU2M8=; b=DzelDL4alUwh9DEUY/xh6M8O7E1mK/gD0xIKHNZShdd5i8NGsjVfAYibE+izAtG1/fiLZe qR4w5DB4tFe61/WSIixjH/AEpBAi/z/14y0pbvkioHkEjUDT+k4VbYL3c/OSFo8CXVPUf7 Z6vVkMS8eAmAbXEBNuE1UoY8Vmou/WM/62bU3N+PwqPr91opZM3dT2HT2V+kUps8aU+Q1Q Cxi5EA6Ee2KcYk+ySkF1dsdi59oPIbMlYYb1Mb7cxHg5BvRzQufroR5IqJ760WspHPDFUo yjv/r83atfMDLMpjJCgWxqNFsMeddmHSrw/6d0uRodqUUVLA40SQ7Ph24V01Bg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676308535; a=rsa-sha256; cv=none; b=XYjUOlBTspoUmH50O3eZhCIzQ29BRtbJbSS/GVOUrn231zs1sXrBqxvQ8/w3e2yco0nZLZ 4AWOxIwssJK77Yy3wE6+PDtbuivysf5aQLWg7r2myzEtOq2UfEhIYeibrOOUjqX7onPI6k tcMks7u1+dfWDorVGhrHyOzGxy09V01jyPSclssSvwpjF5ff6+F7D4Yhh7x9A/hhgeMrh2 rTWFjspjLbJ8yAZ1X75NiP0wjT6aDOlDnbe69goPDw1zUWejbmbqiZxy7o97Z23nJkbHTt YnPokBkaHrrWzzAJqjgfjNlTPExabGxoCn19LeU/uc8CcdkjsN23X51dh8YTZw== 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 4PFrZb2vCJzQp9; Mon, 13 Feb 2023 17:15:35 +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 31DHFZrc025864; Mon, 13 Feb 2023 17:15:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31DHFZUE025863; Mon, 13 Feb 2023 17:15:35 GMT (envelope-from git) Date: Mon, 13 Feb 2023 17:15:35 GMT Message-Id: <202302131715.31DHFZUE025863@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: b80185c26724 - main - zlib: Use NO_WDEPRECATED_NON_PROTOTYPE 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b80185c267243a57bbc3e03fd2b47680672d6050 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=b80185c267243a57bbc3e03fd2b47680672d6050 commit b80185c267243a57bbc3e03fd2b47680672d6050 Author: Warner Losh AuthorDate: 2023-02-13 16:15:58 +0000 Commit: Warner Losh CommitDate: 2023-02-13 16:59:51 +0000 zlib: Use NO_WDEPRECATED_NON_PROTOTYPE Also add it to kern.mk so it's available for module builds. Sponsored by: Netflix Noticed by: mjg Fixes: b9f235ba3178 Differential Revision: https://reviews.freebsd.org/D38550 --- sys/conf/kern.mk | 1 + sys/modules/zlib/Makefile | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index bdceeba3a5b3..2668b7e5296e 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -53,6 +53,7 @@ CWARNEXTRA+= -Wno-error=array-parameter CWARNEXTRA+= -Wno-error=deprecated-non-prototype CWARNEXTRA+= -Wno-error=strict-prototypes CWARNEXTRA+= -Wno-error=unused-but-set-variable +NO_WDEPRECATED_NON_PROTOTYPE=-Wno-deprecated-non-prototype .endif .endif # clang diff --git a/sys/modules/zlib/Makefile b/sys/modules/zlib/Makefile index 178d3a3f7ab7..b5a55b9812bb 100644 --- a/sys/modules/zlib/Makefile +++ b/sys/modules/zlib/Makefile @@ -25,6 +25,6 @@ CWARNFLAGS.crc32.c+=${NO_WSTRICT_PROTOTYPES} # crc32.c:586 CWARNFLAGS.trees.c+=${NO_WSTRICT_PROTOTYPES} # trees.c:232 CWARNFLAGS.zutil.c+=${NO_WSTRICT_PROTOTYPES} # zutil.c:27,32 -CWARNFLAGS+=-Wno-deprecated-non-prototype - .include + +CWARNFLAGS+=${NO_WDEPRECATED_NON_PROTOTYPE} # https://github.com/madler/zlib/issues/633