From: Ian Jackson Date: Fri, 4 Jul 2008 14:36:11 +0000 (+0100) Subject: Do not pass -Wno-pointer-sign if not supported X-Git-Tag: xen-3.3.0-rc1~58^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8b8cfa178a2b6b8418cef50cc97b58af70711f19;p=qemu-xen-3.3-testing.git Do not pass -Wno-pointer-sign if not supported --- 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)