]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
LCC: Suppress warnings in Google Benchmark. develop
authorVladislav Shchapov <vladislav@shchapov.ru>
Sun, 17 May 2026 17:01:13 +0000 (22:01 +0500)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 29 May 2026 21:18:09 +0000 (23:18 +0200)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
test/benchmarks/CMakeLists.txt

index 8cf96d8c19f874f8231efbc02664c63dc0e5eba4..6b73860b915fff6852268c95c4f907c22f40ecdb 100644 (file)
@@ -37,6 +37,11 @@ if(NOT benchmark_FOUND)
     if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
         target_compile_options(benchmark PRIVATE -Wno-maybe-uninitialized)
     endif()
+
+    # LCC: Suppress warnings in Google Benchmark
+    if(CMAKE_CXX_COMPILER_ID MATCHES "LCC")
+        target_compile_options(benchmark PRIVATE -Wno-invalid-offsetof -Wno-unused-function -Wno-conversion -Wno-error)
+    endif()
 endif()
 
 # Public API benchmarks