From 465933ebf811a704b618bbf2d638d2f098458213 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Tue, 29 Aug 2017 16:57:48 +0200 Subject: [PATCH] disable some compiler warnings --- makefile.shared | 2 -- makefile_include.mk | 9 +++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/makefile.shared b/makefile.shared index 2805fc5..67213a2 100644 --- a/makefile.shared +++ b/makefile.shared @@ -10,8 +10,6 @@ endif include makefile_include.mk -PLATFORM := $(shell uname | sed -e 's/_.*//') - ifndef LT ifeq ($(PLATFORM), Darwin) LT:=glibtool diff --git a/makefile_include.mk b/makefile_include.mk index d3c2bac..a96df51 100644 --- a/makefile_include.mk +++ b/makefile_include.mk @@ -7,6 +7,8 @@ VERSION=1.0.1-rc2 VERSION_PC=1.0.1 VERSION_SO=1:1 +PLATFORM := $(shell uname | sed -e 's/_.*//') + # default make target default: ${LIBNAME} @@ -55,6 +57,13 @@ endif endif # COMPILE_SIZE endif # COMPILE_DEBUG +ifneq ($(findstring clang,$(CC)),) +CFLAGS += -Wno-typedef-redefinition -Wno-tautological-compare -Wno-builtin-requires-header +endif +ifeq ($(PLATFORM), Darwin) +CFLAGS += -Wno-nullability-completeness +endif + # adjust coverage set ifneq ($(filter $(shell arch), i386 i686 x86_64 amd64 ia64),) COVERAGE = test_standalone timing