diff --git a/src/plugins/intel_npu/src/al/src/config/config.cpp b/src/plugins/intel_npu/src/al/src/config/config.cpp index 1f104f5626ac9e..b64a98e55ab97a 100644 --- a/src/plugins/intel_npu/src/al/src/config/config.cpp +++ b/src/plugins/intel_npu/src/al/src/config/config.cpp @@ -167,8 +167,8 @@ std::vector OptionsDesc::getSupported(bool includePrivate) const { } void OptionsDesc::walk(std::function cb) const { - for (const auto& [_, opt] : _impl) { - cb(opt); + for (const auto& itr : _impl) { + cb(itr.second); } } diff --git a/src/plugins/intel_npu/thirdparty/CMakeLists.txt b/src/plugins/intel_npu/thirdparty/CMakeLists.txt index a1baf9bb3b8429..4c0cf2494b1dd0 100644 --- a/src/plugins/intel_npu/thirdparty/CMakeLists.txt +++ b/src/plugins/intel_npu/thirdparty/CMakeLists.txt @@ -27,9 +27,11 @@ if(ENABLE_ZEROAPI_BACKEND) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \ -Wno-error=undef \ -Wno-error=unused-but-set-variable \ - -Wno-error=missing-declarations \ - -Wno-error=stringop-truncation \ - -Wno-unknown-warning-option") + -Wno-error=missing-declarations") + if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 8.1) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \ + -Wno-error=stringop-truncation") + endif() endif() set(CMAKE_COMPILE_WARNING_AS_ERROR OFF) add_subdirectory(level-zero EXCLUDE_FROM_ALL)