From b8c84ad01b69fd0d059ba9828f8227f7d2a54794 Mon Sep 17 00:00:00 2001 From: pancake Date: Mon, 6 Feb 2017 13:24:33 +0100 Subject: [PATCH] Silent CC warnings --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index dcbfd9e8..932c49a8 100644 --- a/Makefile +++ b/Makefile @@ -286,7 +286,7 @@ endif API_MAJOR=$(shell echo `grep -e CS_API_MAJOR include/capstone/capstone.h | grep -v = | awk '{print $$3}'` | awk '{print $$1}') VERSION_EXT = -IS_APPLE := $(shell $(CC) -dM -E - < /dev/null | grep __apple_build_version__ | wc -l | tr -d " ") +IS_APPLE := $(shell $(CC) -dM -E - < /dev/null 2> /dev/null | grep __apple_build_version__ | wc -l | tr -d " ") ifeq ($(IS_APPLE),1) EXT = dylib VERSION_EXT = $(API_MAJOR).$(EXT) @@ -303,7 +303,7 @@ endif else $(LIBNAME)_LDFLAGS += -shared # Cygwin? -IS_CYGWIN := $(shell $(CC) -dumpmachine | grep -i cygwin | wc -l) +IS_CYGWIN := $(shell $(CC) -dumpmachine 2>/dev/null | grep -i cygwin | wc -l) ifeq ($(IS_CYGWIN),1) EXT = dll AR_EXT = lib @@ -312,7 +312,7 @@ CFLAGS := $(CFLAGS:-fPIC=) # On Windows we need the shared library to be executable else # mingw? -IS_MINGW := $(shell $(CC) --version | grep -i mingw | wc -l) +IS_MINGW := $(shell $(CC) --version 2>/dev/null | grep -i mingw | wc -l) ifeq ($(IS_MINGW),1) EXT = dll AR_EXT = lib