aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNuno Teixeira <eduardo@FreeBSD.org>2026-05-05 22:45:53 +0000
committerNuno Teixeira <eduardo@FreeBSD.org>2026-05-06 07:29:55 +0000
commitb1586e2161168176cd97d377680336192d6251f1 (patch)
tree1c88bac29995cd412249b5947eeb093f3cc2cc42
parent2a5052eb0f56153e38c461df48eeab6fdd68dc59 (diff)
games/cataclysm-dda: Unbreak on 16-CURRENT with Clang 21
- Add workaround for strict flow analysis introduced in LLVM 21.1.8 - Limit CXXFLAGS to FreeBSD >= 1600017 to preserve build integrity on older versions - Fixes "function could be declared with attribute 'noreturn'" errors [1] [1] https://github.com/llvm/llvm-project/issues/154493
-rw-r--r--games/cataclysm-dda/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/games/cataclysm-dda/Makefile b/games/cataclysm-dda/Makefile
index befa78eed625..fb70f5a371a8 100644
--- a/games/cataclysm-dda/Makefile
+++ b/games/cataclysm-dda/Makefile
@@ -67,4 +67,13 @@ post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+# Clang 21.1.8 introduced stricter flow analysis on 16-CURRENT (2026-04-25)
+# This workaround prevents build failure in math_parser.cpp and others.
+# Ref: https://github.com/llvm/llvm-project/issues/154493
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1600017
+CXXFLAGS+= -Wno-error=missing-noreturn -Wno-error=deprecated-declarations
+.endif
+
+.include <bsd.port.post.mk>