databases/nanodbc: Fix build with llvm16

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
2023Q4
Muhammad Moinur Rahman 2023-08-07 20:55:42 +02:00
parent 15a656ba90
commit 41c598bf19
1 changed files with 6 additions and 0 deletions

View File

@ -22,4 +22,10 @@ CMAKE_ON= BUILD_SHARED_LIBS \
NANODBC_DISABLE_TESTS NANODBC_DISABLE_EXAMPLES
CMAKE_TESTING_ARGS= -DNANODBC_DISABLE_TESTS=OFF # many tests fail: Data source name not found and no default
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=deprecated-declarations -Wno-error=unused-command-line-argument
.endif
.include <bsd.port.mk>