change compiling flag "-Wno-extended-offsetof" to "-Wno-invalid-offsetof" for clang

This commit is contained in:
shuxin   zheng 2020-05-19 09:28:57 +08:00
parent 8fb50aa0e6
commit 79317f0965
31 changed files with 39 additions and 39 deletions

View File

@ -28,7 +28,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
endif

View File

@ -28,7 +28,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
endif

View File

@ -31,7 +31,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
endif

View File

@ -31,7 +31,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
endif

View File

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

View File

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

View File

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

View File

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

View File

@ -31,7 +31,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

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

View File

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

View File

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

View File

@ -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
SYSLIB += -liconv -rdynamic
endif

View File

@ -39,7 +39,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

@ -31,7 +31,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

@ -31,7 +31,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
endif

View File

@ -39,7 +39,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

@ -39,7 +39,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

@ -31,7 +31,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

@ -31,7 +31,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

@ -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

@ -28,12 +28,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
@ -45,7 +45,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

@ -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

View File

@ -32,12 +32,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
@ -49,7 +49,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

@ -44,7 +44,7 @@ endif
# For Darwin
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
CFLAGS += -DMACOSX -Wno-invalid-source-encoding -Wno-extended-offsetof
CFLAGS += -DMACOSX -Wno-invalid-source-encoding -Wno-invalid-offsetof
UNIXTYPE = MACOSX
endif

View File

@ -39,7 +39,7 @@ endif
#For Darwin
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
CFLAGS += -DMACOSX -Wno-invalid-source-encoding -Wno-extended-offsetof
CFLAGS += -DMACOSX -Wno-invalid-source-encoding -Wno-invalid-offsetof
UNIXTYPE = MACOSX
endif

View File

@ -25,7 +25,7 @@ ifeq ($(CC),)
endif
ifeq ($(findstring clang++, $(CC)), clang++)
CFLAGS += -Wno-invalid-source-encoding -Wno-extended-offsetof
CFLAGS += -Wno-invalid-source-encoding -Wno-invalid-offsetof
endif
#Find system type.

View File

@ -25,7 +25,7 @@ ifeq ($(CC),)
endif
ifeq ($(findstring clang++, $(CC)), clang++)
CFLAGS += -Wno-invalid-source-encoding -Wno-extended-offsetof
CFLAGS += -Wno-invalid-source-encoding -Wno-invalid-offsetof
endif
#Find system type.

View File

@ -25,7 +25,7 @@ ifeq ($(CC),)
endif
ifeq ($(findstring clang++, $(CC)), clang++)
CFLAGS += -Wno-invalid-source-encoding -Wno-extended-offsetof
CFLAGS += -Wno-invalid-source-encoding -Wno-invalid-offsetof
endif
#Find system type.

View File

@ -25,7 +25,7 @@ ifeq ($(CC),)
endif
ifeq ($(findstring clang++, $(CC)), clang++)
CFLAGS += -Wno-invalid-source-encoding -Wno-extended-offsetof
CFLAGS += -Wno-invalid-source-encoding -Wno-invalid-offsetof
endif
#Find system type.

View File

@ -45,7 +45,7 @@ endif
# For Darwin
ifeq ($(findstring Darwin, $(UNIXNAME)), Darwin)
CFLAGS += -DMACOSX -Wno-invalid-source-encoding -Wno-extended-offsetof
CFLAGS += -DMACOSX -Wno-invalid-source-encoding -Wno-invalid-offsetof
UNIXTYPE = MACOSX
endif