From 4a7b85a96706f3743a1a1d44bb404705d0dc91c6 Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 28 Jan 2016 23:47:11 -0800 Subject: [PATCH] cmake: fix builtin detection w/-Werror and other warnings enabled (-Wunused-value) Change-Id: Ie3605628b4cbfb5bfd1e847cc504cb96f2825388 --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 643a5bb5..ab41f5fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,7 @@ endif() include(CheckCSourceCompiles) check_c_source_compiles(" int main(void) { - __builtin_bswap16(0); + (void)__builtin_bswap16(0); return 0; } " @@ -32,7 +32,7 @@ check_c_source_compiles(" ) check_c_source_compiles(" int main(void) { - __builtin_bswap32(0); + (void)__builtin_bswap32(0); return 0; } " @@ -40,7 +40,7 @@ check_c_source_compiles(" ) check_c_source_compiles(" int main(void) { - __builtin_bswap64(0); + (void)__builtin_bswap64(0); return 0; } "