diff --git a/cmake/BuildParameters.cmake b/cmake/BuildParameters.cmake index 56d2a62514..65f59d5891 100644 --- a/cmake/BuildParameters.cmake +++ b/cmake/BuildParameters.cmake @@ -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")