mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-21 22:09:23 +01:00
build: ignore unknown warnings/pragmas for CC=clang
IWD uses a few pragmas to ignore warnings which clang does not support. For -Werror builds these cause build failures but can be fixed by ignoring unknown warnings and pragmas.
This commit is contained in:
parent
e0613311c2
commit
d802762be1
@ -64,4 +64,9 @@ AC_DEFUN([COMPILER_FLAGS], [
|
|||||||
CFLAGS+=" -Wcast-align"
|
CFLAGS+=" -Wcast-align"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if (test "$CC" = "clang"); then
|
||||||
|
CFLAGS+=" -Wno-unknown-warning-option"
|
||||||
|
CFLAGS+=" -Wno-unknown-pragmas"
|
||||||
|
fi
|
||||||
])
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user