build: enable gcc-15 picky warnings

Closes #17199
This commit is contained in:
Viktor Szakats 2025-04-25 16:39:45 +02:00
parent ea897fddfc
commit 9daca35b13
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 14 additions and 0 deletions

View file

@ -249,6 +249,13 @@ if(PICKY_COMPILER)
-Wxor-used-as-pow # clang 10.0 gcc 13.0
)
endif()
if(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 15.0)
list(APPEND _picky_enable
-Wleading-whitespace=spaces # gcc 15.0
-Wtrailing-whitespace=any # gcc 15.0
-Wunterminated-string-initialization # gcc 15.0
)
endif()
endif()
#