mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
cmake: fix builtin detection w/-Werror
and other warnings enabled (-Wunused-value) Change-Id: Ie3605628b4cbfb5bfd1e847cc504cb96f2825388
This commit is contained in:
parent
3661b98069
commit
4a7b85a967
@ -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;
|
||||
}
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user