From: ian Date: Sun, 22 Jan 2006 15:59:25 +0000 (+0000) Subject: cope with gcc which does not support -Wno-pointer-sign X-Git-Tag: debian/1.1.1~82 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl.git;a=commitdiff_plain;h=c48252ff1a8cfbd77e1be9717dbcb957bbcf57a8 cope with gcc which does not support -Wno-pointer-sign --- diff --git a/base/common.make b/base/common.make index 2ebd133..1a42772 100644 --- a/base/common.make +++ b/base/common.make @@ -4,8 +4,11 @@ TCL_MEM_DEBUG ?= -DTCL_MEM_DEBUG TCMDIFGEN ?= $(BASE_DIR)/tcmdifgen BASE_TCT ?= $(BASE_DIR)/base.tct +ifeq ($(shell $(CC) -Wno-pointer-sign -E -x c /dev/null >/dev/null || echo x),) +CFLAGS += -Wno-pointer-sign +endif + CFLAGS += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror \ - -Wno-pointer-sign \ $(OPTIMISE) CPPFLAGS += -I$(BASE_DIR) CPPFLAGS += $(TCL_MEM_DEBUG)