Enable -Wattributes warnings

This commit is contained in:
Nekotekina 2021-05-12 18:41:31 +03:00
parent 126141cdce
commit 5b6537674f

View File

@ -64,10 +64,6 @@ else()
endif()
#TODO Clean the code so these are removed
if (NOT (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU") OR (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10.1))
add_compile_options(-Wno-attributes)
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-fconstexpr-steps=16777216)
add_compile_options(-Wno-unused-lambda-capture)