aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominic Hamon <dominichamon@users.noreply.github.com>2020-11-23 10:02:33 +0000
committerGitHub <noreply@github.com>2020-11-23 10:02:33 +0000
commit7fa6f1f91a96d8763de754810710d457f7fea575 (patch)
tree127f0b1c8855d97d697bef004f34d5739319aaa9
parent37ced31bfc9fe09d1418fb197e420408eb8c86bf (diff)
downloadgoogle-benchmark-7fa6f1f91a96d8763de754810710d457f7fea575.tar.gz
Disable lto-type-mismatch warnings (#1071)
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a157666..1007254 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -194,6 +194,7 @@ else()
# Link time optimisation
if (BENCHMARK_ENABLE_LTO)
add_cxx_compiler_flag(-flto)
+ add_cxx_compiler_flag(-Wno-lto-type-mismatch)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
find_program(GCC_AR gcc-ar)
if (GCC_AR)