internal: iso C++ prohibits anonymous structs (#10955)

turn on -Wpedantic and name the anonymous struct.
This commit is contained in:
Tom Englund 2025-07-07 16:18:06 +02:00 committed by GitHub
parent d23ed852fc
commit 54369adffa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 33 additions and 32 deletions

View file

@ -91,6 +91,7 @@ add_compile_options(
-Wno-narrowing
-Wno-pointer-arith
-Wno-clobbered
-Wpedantic
-fmacro-prefix-map=${CMAKE_SOURCE_DIR}/=)
set(CMAKE_EXECUTABLE_ENABLE_EXPORTS TRUE)