diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-08-26 19:14:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-26 19:14:17 -0400 |
| commit | 1ac2615adbd3bf011af96b016080662e9f3ba8f7 (patch) | |
| tree | 6db9e80757e7af611b3836cbb0454ffd163e5c10 /externals | |
| parent | bc4e58eb5180a1755d76a24ddc7684cc5d70f2b1 (diff) | |
| parent | 6bb02dcb8ab95e67f913867aa388be1b189cfcdb (diff) | |
Merge pull request #11338 from comex/warning-fixes-august-2023
Warnings cleanup for GCC 13 and Clang 16
Diffstat (limited to 'externals')
| -rw-r--r-- | externals/CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index 1f7cd598e..82a6da9fd 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -42,6 +42,11 @@ endif() # mbedtls add_subdirectory(mbedtls) target_include_directories(mbedtls PUBLIC ./mbedtls/include) +if (NOT MSVC) + target_compile_options(mbedcrypto PRIVATE + -Wno-unused-but-set-variable + -Wno-string-concatenation) +endif() # MicroProfile add_library(microprofile INTERFACE) @@ -94,6 +99,12 @@ if (ENABLE_CUBEB AND NOT TARGET cubeb::cubeb) set(BUILD_TOOLS OFF) add_subdirectory(cubeb) add_library(cubeb::cubeb ALIAS cubeb) + if (NOT MSVC) + if (TARGET speex) + target_compile_options(speex PRIVATE -Wno-sign-compare) + endif() + target_compile_options(cubeb PRIVATE -Wno-implicit-const-int-float-conversion) + endif() endif() # DiscordRPC @@ -151,6 +162,9 @@ endif() if (NOT TARGET LLVM::Demangle) add_library(demangle demangle/ItaniumDemangle.cpp) target_include_directories(demangle PUBLIC ./demangle) + if (NOT MSVC) + target_compile_options(demangle PRIVATE -Wno-deprecated-declarations) # std::is_pod + endif() add_library(LLVM::Demangle ALIAS demangle) endif() |
