build: enable -Wimplicit-int-enum-cast compiler warning, fix issues

Offered by clang 21+.

Closes #20990
This commit is contained in:
Viktor Szakats 2026-03-19 00:02:02 +01:00
parent d86fd143a1
commit 59405ffb7d
No known key found for this signature in database
4 changed files with 5 additions and 2 deletions

View file

@ -258,6 +258,7 @@ if(PICKY_COMPILER)
list(APPEND _picky_enable
-Warray-compare # clang 20.1 gcc 12.0 appleclang 26.4
-Wc++-hidden-decl # clang 21.1 appleclang 26.4
-Wimplicit-int-enum-cast # clang 21.1
-Wjump-misses-init # clang 21.1 gcc 4.5 appleclang 26.4
-Wno-implicit-void-ptr-cast # clang 21.1 appleclang 26.4
-Wtentative-definition-compat # clang 21.1 appleclang 26.4