warning bit for clang-22 and tiletext.c
This commit is contained in:
@@ -110,6 +110,7 @@ CXX=clang++ -std=gnu++11
|
|||||||
CLANGGTEQ12 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 12)
|
CLANGGTEQ12 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 12)
|
||||||
CLANGGTEQ14 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 14)
|
CLANGGTEQ14 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 14)
|
||||||
CLANGGTEQ21 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 21)
|
CLANGGTEQ21 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 21)
|
||||||
|
CLANGGTEQ22 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 22)
|
||||||
ifeq "$(CLANGGTEQ12)" "1"
|
ifeq "$(CLANGGTEQ12)" "1"
|
||||||
CFLAGS+=-Wimplicit-fallthrough
|
CFLAGS+=-Wimplicit-fallthrough
|
||||||
endif
|
endif
|
||||||
@@ -124,6 +125,9 @@ endif
|
|||||||
ifeq "$(CLANGGTEQ21)" "1"
|
ifeq "$(CLANGGTEQ21)" "1"
|
||||||
CFLAGS+=-Wno-deprecated-octal-literals
|
CFLAGS+=-Wno-deprecated-octal-literals
|
||||||
endif
|
endif
|
||||||
|
ifeq "$(CLANGGTEQ22)" "1"
|
||||||
|
NO_WARN_DISCARDED_QUALIFIERS=-Wno-incompatible-pointer-types-discards-qualifiers
|
||||||
|
endif
|
||||||
# none
|
# none
|
||||||
endif # clang-specific ends here
|
endif # clang-specific ends here
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user