* [PATCH 3/3] build: ignore unknown warnings/pragmas for CC=clang
@ 2022-06-10 19:52 James Prestwood
0 siblings, 0 replies; only message in thread
From: James Prestwood @ 2022-06-10 19:52 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 592 bytes --]
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.
---
acinclude.m4 | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/acinclude.m4 b/acinclude.m4
index a66a3746..3fd96236 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -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
])
--
2.34.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-10 19:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-10 19:52 [PATCH 3/3] build: ignore unknown warnings/pragmas for CC=clang James Prestwood
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.