From 8b8cfa178a2b6b8418cef50cc97b58af70711f19 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 4 Jul 2008 15:36:11 +0100 Subject: [PATCH] Do not pass -Wno-pointer-sign if not supported --- xen-hooks.mak | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xen-hooks.mak b/xen-hooks.mak index ec3a1df7..e1894241 100644 --- a/xen-hooks.mak +++ b/xen-hooks.mak @@ -10,8 +10,11 @@ endif QEMU_PROG=qemu-dm -CFLAGS += -Wno-unused -Wno-declaration-after-statement \ - -Wno-pointer-sign +CFLAGS += -Wno-unused -Wno-declaration-after-statement + +ifeq (,$(shell $(CC) -Wno-pointer-sign -E - /dev/null || echo x)) +CFLAGS += -Wno-pointer-sign +endif CFLAGS += $(CMDLINE_CFLAGS) -- 2.39.5