From 6d61de5a309d4e520ba93db03bf80d13af5fb6d3 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 29 Oct 2014 08:23:18 -0700 Subject: [PATCH] PDP1, PDP11, TX-0: Cleanup build messages on *nix platforms avoiding XKeycodeToKeysym deprecated messages. Fix #58 --- makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/makefile b/makefile index 426d3688..0461eaf1 100644 --- a/makefile +++ b/makefile @@ -804,6 +804,11 @@ ifeq ($(WIN32),) DISPLAYL = ${DISPLAYD}/display.c $(DISPLAYD)/x11.c DISPLAYVT = ${DISPLAYD}/vt11.c DISPLAY_OPT = -DUSE_DISPLAY -I/usr/X11/include -lXt -lX11 -lm + ifneq (3,$(GCC_MAJOR_VERSION)) + ifneq (,$(findstring -Wdeprecated-declarations,$(shell $(GCC_WARNINGS_CMD)))) + DISPLAY_OPT += -Wno-deprecated-declarations + endif + endif else DISPLAYL = DISPLAYVT =