Date: Sun, 9 Apr 2023 21:35:25 GMT From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 4d2ea4dc2c7c - stable/13 - clang: Define NO_WDEPRECATED_NON_PROTOTYPE for clang 15 Message-ID: <202304092135.339LZPvY081704@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=4d2ea4dc2c7c335c02c46e7bf77f31baafccfb6a commit 4d2ea4dc2c7c335c02c46e7bf77f31baafccfb6a Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-11-30 18:08:16 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2023-04-09 14:55:42 +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 (cherry picked from commit 0ecb61619688acf57a6f5d7b00bf7fda62cf7c53) --- 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 25e2c9787329..b11ba2ddabcb 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304092135.339LZPvY081704>