diff --git a/sys/unix/hints/include/compiler.370 b/sys/unix/hints/include/compiler.370 index 5ef6f801e..b686636a2 100755 --- a/sys/unix/hints/include/compiler.370 +++ b/sys/unix/hints/include/compiler.370 @@ -98,6 +98,7 @@ CXX=clang++ -std=gnu++11 # clang-specific follows CLANGGTEQ12 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 12) CLANGGTEQ14 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 14) +CLANGGTEQ21 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 21) ifeq "$(CLANGGTEQ12)" "1" CFLAGS+=-Wimplicit-fallthrough endif @@ -109,6 +110,9 @@ else # older versions complain about things newer ones don't without this CFLAGS+=-Wno-missing-field-initializers endif +ifeq "$(CLANGGTEQ21)" "1" +CFLAGS+=-Wno-deprecated-octal-literals +endif # none endif # clang-specific ends here