equal
deleted
inserted
replaced
291 CC_VERSION = $(shell $(CC) -dumpversion | cut -c 1,3) |
291 CC_VERSION = $(shell $(CC) -dumpversion | cut -c 1,3) |
292 |
292 |
293 # GNU make can only test for (in)equality |
293 # GNU make can only test for (in)equality |
294 # this is a workaround to test for >= |
294 # this is a workaround to test for >= |
295 ifeq ($(shell expr $(CC_VERSION) \>= 29), 1) |
295 ifeq ($(shell expr $(CC_VERSION) \>= 29), 1) |
296 CFLAGS += -O -Wall -Wno-multichar -Wsign-compare -Wstrict-prototypes |
296 CFLAGS += -O -Wall -Wno-multichar -Wsign-compare -Wstrict-prototypes -Wundef |
297 CFLAGS += -Wwrite-strings -Wpointer-arith |
297 CFLAGS += -Wwrite-strings -Wpointer-arith |
298 endif |
298 endif |
299 ifeq ($(shell expr $(CC_VERSION) \>= 30), 1) |
299 ifeq ($(shell expr $(CC_VERSION) \>= 30), 1) |
300 CFLAGS += -W -Wno-unused-parameter |
300 CFLAGS += -W -Wno-unused-parameter |
301 endif |
301 endif |