cmake: fix builtin detection w/-Werror

and other warnings enabled (-Wunused-value)

Change-Id: Ie3605628b4cbfb5bfd1e847cc504cb96f2825388
This commit is contained in:
James Zern 2016-01-28 23:47:11 -08:00
parent 3661b98069
commit 4a7b85a967

View File

@ -24,7 +24,7 @@ endif()
include(CheckCSourceCompiles) include(CheckCSourceCompiles)
check_c_source_compiles(" check_c_source_compiles("
int main(void) { int main(void) {
__builtin_bswap16(0); (void)__builtin_bswap16(0);
return 0; return 0;
} }
" "
@ -32,7 +32,7 @@ check_c_source_compiles("
) )
check_c_source_compiles(" check_c_source_compiles("
int main(void) { int main(void) {
__builtin_bswap32(0); (void)__builtin_bswap32(0);
return 0; return 0;
} }
" "
@ -40,7 +40,7 @@ check_c_source_compiles("
) )
check_c_source_compiles(" check_c_source_compiles("
int main(void) { int main(void) {
__builtin_bswap64(0); (void)__builtin_bswap64(0);
return 0; return 0;
} }
" "