graphics/dspdfviewer: Fix builds in 13.3 and 14.1.

(cherry picked from commit e56cb1f7a2)
This commit is contained in:
Santhosh Raju 2024-08-04 19:42:03 +02:00
parent 5c7599f2fa
commit cb53289b53
1 changed files with 2 additions and 2 deletions

View File

@ -62,12 +62,12 @@ 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
.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) && ${CHOSEN_COMPILER_TYPE} == clang
CFLAGS+= -Wno-error=unsafe-buffer-usage
.endif
# Fixes build failure for Clang 18.1.4
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1500018 && ${CHOSEN_COMPILER_TYPE} == clang
.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1401000 || ${OSVERSION} >= 1500018) && ${CHOSEN_COMPILER_TYPE} == clang
CFLAGS+= -Wno-error=switch-default
.endif