aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-07-18 09:48:18 -0400
committerDrew DeVault <sir@cmpwn.com>2017-07-18 09:48:18 -0400
commit13f3c69ec6fc36f04f60a6b3593320ffcbd41d18 (patch)
tree7b1168c6fbb9cfcece0a45ded49b1a9b9986e486
parent23d2301496772a90f9008ba7ca9fe34cc61f811b (diff)
Fix LTO (fixes #26)
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index aef4acc9..8457d93c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,6 +16,7 @@ if (CMAKE_COMPILER_IS_GNUCC)
if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 7.0)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wimplicit-fallthrough=0")
endif()
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-lto-type-mismatch")
endif()
if (CMAKE_BUILD_TYPE MATCHES Release)
# Some variables are only used for assertions