3
0
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:
James Prestwood 2022-06-10 12:52:42 -07:00 committed by Denis Kenzior
parent e0613311c2
commit d802762be1

View File

@ -64,4 +64,9 @@ AC_DEFUN([COMPILER_FLAGS], [
CFLAGS+=" -Wcast-align"
fi
fi
if (test "$CC" = "clang"); then
CFLAGS+=" -Wno-unknown-warning-option"
CFLAGS+=" -Wno-unknown-pragmas"
fi
])