mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 04:32:37 +01:00
autotools: Only use -Wcast-align with gcc
-Wcast-align currently breaks compilation with clang. There's a more details about it on the ell mailing list.
This commit is contained in:
parent
27bdddf010
commit
e2074678a3
@ -22,6 +22,8 @@ AC_DEFUN([COMPILER_FLAGS], [
|
||||
CFLAGS+=" -Wdeclaration-after-statement"
|
||||
CFLAGS+=" -Wmissing-declarations"
|
||||
CFLAGS+=" -Wredundant-decls"
|
||||
CFLAGS+=" -Wcast-align"
|
||||
if ( $CC -v 2>/dev/null | grep "gcc version" ); then
|
||||
CFLAGS+=" -Wcast-align"
|
||||
fi
|
||||
fi
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user