From 342bbc85c440103366c6f5c13de6adae2b4677b9 Mon Sep 17 00:00:00 2001 From: nhmall Date: Thu, 14 May 2026 08:31:33 -0400 Subject: [PATCH] warning bit for clang-22 and tiletext.c --- sys/unix/hints/include/compiler.500 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/unix/hints/include/compiler.500 b/sys/unix/hints/include/compiler.500 index 069b9c995..acc5662d1 100755 --- a/sys/unix/hints/include/compiler.500 +++ b/sys/unix/hints/include/compiler.500 @@ -110,6 +110,7 @@ CXX=clang++ -std=gnu++11 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) +CLANGGTEQ22 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 22) ifeq "$(CLANGGTEQ12)" "1" CFLAGS+=-Wimplicit-fallthrough endif @@ -124,6 +125,9 @@ endif ifeq "$(CLANGGTEQ21)" "1" CFLAGS+=-Wno-deprecated-octal-literals endif +ifeq "$(CLANGGTEQ22)" "1" +NO_WARN_DISCARDED_QUALIFIERS=-Wno-incompatible-pointer-types-discards-qualifiers +endif # none endif # clang-specific ends here