diff --git a/cmake/developer_package/compile_flags/os_flags.cmake b/cmake/developer_package/compile_flags/os_flags.cmake index 642e5f83b9e..23ffcac0fcb 100644 --- a/cmake/developer_package/compile_flags/os_flags.cmake +++ b/cmake/developer_package/compile_flags/os_flags.cmake @@ -311,9 +311,7 @@ if(WIN32) string(REPLACE "/Zi" "/Z7" CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}") else() if (CMAKE_COMPILE_WARNING_AS_ERROR AND CMAKE_VERSION VERSION_LESS 3.24) - # TODO: enable for C sources as well - # ie_add_compiler_flags(-Werror) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") + ie_add_compiler_flags(-Werror) endif() ie_add_compiler_flags(-ffunction-sections -fdata-sections) ie_add_compiler_flags(-fdiagnostics-show-option)