disable some compiler warnings
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
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