fixed compiling waring on MacOS

This commit is contained in:
shuxin   zheng 2020-02-15 19:26:41 +08:00
parent cf6aab9e9b
commit 95883c415f
8 changed files with 18 additions and 18 deletions

View File

@ -35,18 +35,18 @@ endif
ifeq ($(findstring clang, $(CC)), clang)
CFLAGS += -Wstrict-prototypes \
-Wno-invalid-source-encoding \
-Wno-extended-offsetof
-Wno-invalid-offsetof
endif
ifeq ($(findstring clang++, $(CC)), clang)
CFLAGS += -Wno-invalid-source-encoding \
-Wno-extended-offsetof
-Wno-invalid-offsetof
endif
ifeq ($(findstring gcc, $(CC)), clang++)
CFLAGS += -Wstrict-prototypes \
-Wno-invalid-source-encoding \
-Wno-extended-offsetof
-Wno-invalid-offsetof
endif
# For FreeBSD
@ -58,7 +58,7 @@ endif
# For Darwin
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
-Wno-extended-offsetof
-Wno-invalid-offsetof
SYSLIB += -rdynamic
UNIXTYPE = MACOSX
endif

View File

@ -33,12 +33,12 @@ endif
ifeq ($(findstring clang, $(CC)), clang)
CFLAGS += -Wstrict-prototypes \
-Wno-invalid-source-encoding \
-Wno-extended-offsetof
-Wno-invalid-offsetof
endif
ifeq ($(findstring clang++, $(CC)), clang++)
CFLAGS += -Wno-invalid-source-encoding \
-Wno-extended-offsetof
-Wno-invalid-offsetof
endif
# For FreeBSD
@ -50,7 +50,7 @@ endif
# For Darwin
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
-Wno-extended-offsetof
-Wno-invalid-offsetof
UNIXTYPE = MACOSX
endif

View File

@ -35,7 +35,7 @@ endif
ifeq ($(findstring clang++, $(CC)), clang++)
CFLAGS += -Wno-invalid-source-encoding \
-Wno-extended-offsetof
-Wno-invalid-offsetof
endif
# For FreeBSD
@ -48,7 +48,7 @@ endif
# For Darwin
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
-Wno-extended-offsetof
-Wno-invalid-offsetof
SYSLIB += -rdynamic
UNIXTYPE = MACOSX
RPATH = macos

View File

@ -58,12 +58,12 @@ endif
ifeq ($(findstring clang, $(CC)), clang)
CFLAGS += -Wstrict-prototypes \
-Wno-invalid-source-encoding \
-Wno-extended-offsetof
-Wno-invalid-offsetof
endif
ifeq ($(findstring clang++, $(CC)), clang++)
CFLAGS += -Wno-invalid-source-encoding \
-Wno-extended-offsetof
-Wno-invalid-offsetof
endif
# For FreeBSD
@ -74,7 +74,7 @@ endif
# For Darwin
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
-Wno-extended-offsetof
-Wno-invalid-offsetof
UNIXTYPE = MACOSX
endif

View File

@ -88,7 +88,7 @@ endif
# For Darwin
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
-Wno-extended-offsetof \
-Wno-invalid-offsetof \
-Wno-deprecated-declarations
endif

View File

@ -77,7 +77,7 @@ endif
# For Darwin
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
-Wno-extended-offsetof \
-Wno-invalid-offsetof \
-Wno-unused-private-field
UNIXTYPE = MACOSX
shared_ldflags = -lacl_cpp -lprotocol -lacl -L/usr/lib -liconv -lz -lpthread

View File

@ -32,7 +32,7 @@ endif
# For Darwin
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
-Wno-extended-offsetof
-Wno-invalid-offsetof
UNIXTYPE = MACOSX
SYSLIB += -liconv -rdynamic
RPATH = macos

View File

@ -36,12 +36,12 @@ endif
ifeq ($(findstring clang, $(CC)), clang)
CFLAGS += -Wstrict-prototypes \
-Wno-invalid-source-encoding \
-Wno-extended-offsetof
-Wno-invalid-offsetof
endif
ifeq ($(findstring clang++, $(CC)), clang++)
CFLAGS += -Wno-invalid-source-encoding \
-Wno-extended-offsetof
-Wno-invalid-offsetof
endif
# For FreeBSD
@ -53,7 +53,7 @@ endif
# For Darwin
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
CFLAGS += -DMACOSX -Wno-invalid-source-encoding \
-Wno-extended-offsetof
-Wno-invalid-offsetof
SYSLIB += -rdynamic
UNIXTYPE = MACOSX
endif