Commit 465933ebf811a704b618bbf2d638d2f098458213

Steffen Jaeckel 2017-08-29T16:57:48

disable some compiler warnings

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