src: silence clang-15 compiler warnings

This commit is contained in:
Markus F.X.J. Oberhumer
2022-09-16 16:31:34 +02:00
parent 73c816e468
commit 63298ebd6d
5 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -131,7 +131,8 @@ if(MSVC)
target_compile_options(${t} PRIVATE -DHAVE_STDARG_H -DHAVE_VSNPRINTF -J -W3 ${warn_WX})
else()
target_compile_options(${t} PRIVATE -DHAVE_STDARG_H -DHAVE_UNISTD_H -DHAVE_VSNPRINTF)
target_compile_options(${t} PRIVATE -Wall -Wextra -Wvla ${warn_Werror})
# clang-15: -Wno-strict-prototypes is needed to silence the new -Wdeprecated-non-prototype warning
target_compile_options(${t} PRIVATE -Wall -Wextra -Wvla -Wno-strict-prototypes ${warn_Werror})
endif()
set(t upx)