From nobody Wed Nov 30 18:09:13 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 4NMnK53Hmkz4jBx6; Wed, 30 Nov 2022 18:09:13 +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 4NMnK52mqzz4D6V; Wed, 30 Nov 2022 18:09:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669831753; 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=1SNVwQr1cYksVHvXfcofI7ZWBZ0Zd6Wenc4aCJ1Ceac=; b=oH1zD4c4cqnz36YHB8bf9wFm9cY+6pfDsAXy+MNo6vohV7xQ5AHLZuSnJfh+ZATwlXAdYw fX24xxh6ZQO61LzPiEXjR4bG0O0QVTW9C4RtWYliCnjhpk+sGof5j5alhejI5iyH+X3xnW qERJK6lug5XP21UAoi9qR/bkAoCMv081vU+JBU6voI9iIuRSHkJbNNIfe6SekMhDX7g+2T YIpnsPPAeEcVsXFjxej7Wwr+ky0EogdCzsydO0v/YrjkjU2JZN+yH9q5loaVRvfIqUsCuG RgValiKzPFVYtorp8coIFeoJgJIgwR+T/Z4qehx3xpwFpVcYEVQuclFLPhWGew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669831753; 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=1SNVwQr1cYksVHvXfcofI7ZWBZ0Zd6Wenc4aCJ1Ceac=; b=jpubIoljjisUrqo16I4fM2sAdKmz+0acvna/7T1MpqK+9zSGvLuDK1YAuC1QOLAAptYMLR bjOdYMbH++R4VpgoXkgNZ9tQ5vgjJFHuVBdkll+XkSas/dTeseIScmbSB6Cq0uwZi6peO6 v73uEDPZcqwm2mV4Lp8gbY9elDyjldlFO/XcdJOdEJHPENEBqQYBsX4kCUP8AGhVmGFnTn CToqBss5WBJ2N3Z8/fL7DNEIbjZ4Z1rr/OtdjRsis871kuLYGVl0DPqnhLp4L9xgpnZCa6 4FSxsUMqLy66DxGKc81HcQDoDZUCwZkDEp43PfDvHAEK82LwQR9XmZUb4QEi5A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669831753; a=rsa-sha256; cv=none; b=oqfvyNaZrxU71uRsOo7XQ2WSCpfkNeZJq8UC69OBSXW7HjJKUv3O+EgEBdakoG7xQGy8E+ 4mtUb1hLYZUYBT0+TcFM0O5W00g1tY1mQT9yipxeHB87K+5T/ZwHPOY2e1WO8ObwsOdUUe cuG2w4aySpUG0SOhLkLKOKqIQno9nqFccQMFS3HdC2aKiJ6fatBRO5WIEVqHN3PXbIpeZL XKwDVIOj2Eao5ln/yhPiXU6HsDb0+cRfXbTbv1vagt/jJYOVhlGDGJg859j/Zk3sDzE3Ko gR63EY7OtU/Vk/Vy+njA8R0v0vM5ValDrZYRWM8pQRW2Y/VE0wJxdt6VAOMm1Q== 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 4NMnK51j9Jz15ht; Wed, 30 Nov 2022 18:09:13 +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 2AUI9DCS032394; Wed, 30 Nov 2022 18:09:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AUI9DO1032393; Wed, 30 Nov 2022 18:09:13 GMT (envelope-from git) Date: Wed, 30 Nov 2022 18:09:13 GMT Message-Id: <202211301809.2AUI9DO1032393@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: 0ecb61619688 - main - clang: Define NO_WDEPRECATED_NON_PROTOTYPE for clang 15 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: 0ecb61619688acf57a6f5d7b00bf7fda62cf7c53 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0ecb61619688acf57a6f5d7b00bf7fda62cf7c53 commit 0ecb61619688acf57a6f5d7b00bf7fda62cf7c53 Author: Warner Losh AuthorDate: 2022-11-30 18:08:16 +0000 Commit: Warner Losh CommitDate: 2022-11-30 18:08:44 +0000 clang: Define NO_WDEPRECATED_NON_PROTOTYPE for clang 15 Clang 15 enforces function definitions using the C89 form rather than the K&R form. While not strictly a prototype (which is only for a declaration), use the name that mirror's clang's warning name. Much code in contrib still uses K&R function definitions, so invent this for compiling there. Sponsored by: Netflix Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D37515 --- share/mk/bsd.sys.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index aa2336700524..02a27e0f9464 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -114,6 +114,9 @@ CWARNFLAGS+= -Wno-misleading-indentation .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 140000 NO_WBITWISE_INSTEAD_OF_LOGICAL= -Wno-bitwise-instead-of-logical .endif +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000 +NO_WDEPRECATED_NON_PROTOTYPE=-Wno-deprecated-non-prototype +.endif .if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 110100 NO_WARRAY_PARAMETER= -Wno-array-parameter .endif