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
1 changed files with 5 additions and 0 deletions

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
])