aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDjihad Mahboubi <76681596+Djihads80@users.noreply.github.com>2026-11-01 13:00:12 +0100
committerGitHub <noreply@github.com>2026-11-01 13:00:12 +0100
commit3003c5fa4af06d6b804b18ade5ab1bbea0e81556 (patch)
tree5a0fbffdea92bae53f3ef01dfd3f56dfcc9bd447 /src
parente96917cd0e68851ec389dd519f03b52adc11d493 (diff)
parentb610259c74ab3b952fe00e6b5f79e4a1de320ffe (diff)
Merge pull request #105 from shiv121231/nx2
Fixing mac build errors
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a2abc7d1b3..c49e252ccb 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -178,6 +178,13 @@ else()
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-unused-parameter>
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-missing-field-initializers>)
+ if (ENABLE_WERROR AND (NOT MSVC))
+ add_compile_options(
+ $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-error=unused>
+ $<$<COMPILE_LANGUAGE:C,CXX>:-Wno-error=unused-function>
+ )
+ endif()
+
if (CXX_CLANG OR CXX_ICC OR CXX_APPLE) # Clang, AppleClang, or Intel C++
if (NOT MSVC)
add_compile_options(