From ab995d50b71138256a6697b9b997672f66bf7cd2 Mon Sep 17 00:00:00 2001 From: Marco Poletti Date: Sun, 14 Feb 2016 13:24:47 +0000 Subject: Add a cast to void when checking for FRUIT_HAS_CXA_DEMANGLE, otherwise with -Werror this check won't compile and we would incorrectly detect FRUIT_HAS_CXA_DEMANGLE=0 aven if it's available. --- configuration/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'configuration') diff --git a/configuration/CMakeLists.txt b/configuration/CMakeLists.txt index 4e5b9cc..2c4d09f 100644 --- a/configuration/CMakeLists.txt +++ b/configuration/CMakeLists.txt @@ -77,6 +77,7 @@ CHECK_CXX_SOURCE_COMPILES(" #include int main() { auto* p = abi::__cxa_demangle; + (void) p; return 0; } " -- cgit v1.2.3