From: Vladislav Shchapov Date: Sun, 17 May 2026 17:01:13 +0000 (+0500) Subject: LCC: Suppress warnings in Google Benchmark. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=88d89eb4d1b399f1c04f4f73de0e1815bbc52b50;p=thirdparty%2Fzlib-ng.git LCC: Suppress warnings in Google Benchmark. Signed-off-by: Vladislav Shchapov --- diff --git a/test/benchmarks/CMakeLists.txt b/test/benchmarks/CMakeLists.txt index 8cf96d8c1..6b73860b9 100644 --- a/test/benchmarks/CMakeLists.txt +++ b/test/benchmarks/CMakeLists.txt @@ -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