CMake: Disable Wattributes on gcc

This commit is contained in:
TellowKrinkle authored and lightningterror committed 2026-04-17 21:19:28 +02:00
1 parent c610d4d2d4
commit fa26937885
1 file changed
+3
+3
View File
@@ -247,6 +247,9 @@ if (MSVC)
else()
set(DEFAULT_WARNINGS -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-missing-field-initializers)
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
list(APPEND DEFAULT_WARNINGS -Wno-attributes)
endif()
if (USE_PGO_GENERATE OR USE_PGO_OPTIMIZE)
add_compile_options("-fprofile-dir=${CMAKE_SOURCE_DIR}/profile")