git: 039e487c77f7 - main - graphics/dspdfviewer: fix build failure for Clang 18.1.4.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 23 Apr 2024 06:56:37 UTC
The branch main has been updated by fox: URL: https://cgit.FreeBSD.org/ports/commit/?id=039e487c77f7d0aa1abc90d7a068a0017dcc43bd commit 039e487c77f7d0aa1abc90d7a068a0017dcc43bd Author: Santhosh Raju <fox@FreeBSD.org> AuthorDate: 2024-04-23 06:54:22 +0000 Commit: Santhosh Raju <fox@FreeBSD.org> CommitDate: 2024-04-23 06:54:22 +0000 graphics/dspdfviewer: fix build failure for Clang 18.1.4. --- graphics/dspdfviewer/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/graphics/dspdfviewer/Makefile b/graphics/dspdfviewer/Makefile index 1c86f501bd6d..2fae98627929 100644 --- a/graphics/dspdfviewer/Makefile +++ b/graphics/dspdfviewer/Makefile @@ -66,6 +66,11 @@ CFLAGS+= -Wno-error=bitwise-instead-of-logical CFLAGS+= -Wno-error=unsafe-buffer-usage .endif +# Fixes build failure for Clang 18.1.4 +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1500018 && ${CHOSEN_COMPILER_TYPE} == clang +CFLAGS+= -Wno-error=switch-default +.endif + # Prepare for Qt5-5.15 CFLAGS+= -Wno-deprecated