chiark / gitweb /
slight improvements to scriptinv, including scriptinv_invoke_fg
[chiark-tcl.git] / base / common.make
index c24170ef0c208b22ec2175a86cac3072d2b83d36..1a42772f756252f768a2394fbc2bc41d229a48b8 100644 (file)
@@ -4,6 +4,10 @@ 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 \
                $(OPTIMISE)
 CPPFLAGS +=    -I$(BASE_DIR)