diff --git a/src/plugins/intel_cpu/CMakeLists.txt b/src/plugins/intel_cpu/CMakeLists.txt index 8f1b1a15921d26..4321f82e6bd92b 100644 --- a/src/plugins/intel_cpu/CMakeLists.txt +++ b/src/plugins/intel_cpu/CMakeLists.txt @@ -9,7 +9,7 @@ endif() set(TARGET_NAME "openvino_intel_cpu_plugin") if(CMAKE_COMPILER_IS_GNUCC) - ie_add_compiler_flags(-Wno-all) + ie_add_compiler_flags(-Wno-all -Werror -Wundef -Wreturn-type -Wunused-variable -Wunused-value -Wswitch -Wformat -Wformat-security) endif() if (WIN32)