git: 788dadebf927 - main - graphics/dspdfviewer: Fix build failures for clang 16.0.6
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 15 Jul 2023 17:51:21 UTC
The branch main has been updated by fox: URL: https://cgit.FreeBSD.org/ports/commit/?id=788dadebf927edb0b9f9e73c1ee4ff22dc224c2c commit 788dadebf927edb0b9f9e73c1ee4ff22dc224c2c Author: Santhosh Raju <fox@FreeBSD.org> AuthorDate: 2023-07-15 17:40:52 +0000 Commit: Santhosh Raju <fox@FreeBSD.org> CommitDate: 2023-07-15 17:50:34 +0000 graphics/dspdfviewer: Fix build failures for clang 16.0.6 Change applies to 14.0-CURRENT (1400092 and above). --- graphics/dspdfviewer/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/graphics/dspdfviewer/Makefile b/graphics/dspdfviewer/Makefile index 18d66caf2b14..49ce4329c964 100644 --- a/graphics/dspdfviewer/Makefile +++ b/graphics/dspdfviewer/Makefile @@ -61,6 +61,11 @@ CFLAGS+= -Wno-error=suggest-override CFLAGS+= -Wno-error=bitwise-instead-of-logical .endif +# Fixes build failure for Clang 16.0.6 +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400059 && ${CHOSEN_COMPILER_TYPE} == clang +CFLAGS+= -Wno-error=unsafe-buffer-usage +.endif + # Prepare for Qt5-5.15 CFLAGS+= -Wno-deprecated