From ff4961411f534b18b96ae4b3130f14a5b2d6df83 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 29 Oct 2014 09:19:06 -0700 Subject: [PATCH] PDP1, PDP11, TX-0: Addition to cleanup build messages on *nix platforms avoiding XKeycodeToKeysym deprecated messages to also work when using clang (LLVM compiler). Fix #58 --- makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 0461eaf1..a0aee9dd 100644 --- a/makefile +++ b/makefile @@ -804,8 +804,8 @@ 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)))) + ifneq (,$(GCC_WARNINGS_CMD)$(CLANG_VERSION)) + ifneq (,$(CLANG_VERSION)$(findstring -Wdeprecated-declarations,$(shell $(GCC_WARNINGS_CMD)))) DISPLAY_OPT += -Wno-deprecated-declarations endif endif