From e3894d7c6c6c8805d40244a1dd035b8dfde7ce09 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 2 Aug 2018 13:02:21 -0700 Subject: [PATCH] makefile: Avoid deprecated warnings when compiling with clang++ --- makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 36610f5b..423cf991 100644 --- a/makefile +++ b/makefile @@ -194,6 +194,7 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) CC_STD = -std=c99 else CPP_BUILD = 1 + OS_CCDEFS += -Wno-deprecated endif endif ifeq (git-repo,$(shell if $(TEST) -d ./.git; then echo git-repo; fi)) @@ -252,7 +253,7 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) endif $(info *** Warning ***) endif - OS_CCDEFS = -D_GNU_SOURCE + OS_CCDEFS += -D_GNU_SOURCE GCC_OPTIMIZERS_CMD = $(GCC) -v --help 2>&1 GCC_WARNINGS_CMD = $(GCC) -v --help 2>&1 LD_ELF = $(shell echo | $(GCC) -E -dM - | grep __ELF__)