Skip to content

Commit

Permalink
Fix npu warnings for ubuntu18 (openvinotoolkit#23841)
Browse files Browse the repository at this point in the history
### Details:
 - *Fix npu warnings for ubuntu18*

### Tickets:
 - [*CVS-137690*](https://jira.devtools.intel.com/browse/CVS-137690)
  • Loading branch information
pereanub authored Apr 4, 2024
1 parent 0799163 commit bdc1c22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/plugins/intel_npu/src/al/src/config/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ std::vector<std::string> OptionsDesc::getSupported(bool includePrivate) const {
}

void OptionsDesc::walk(std::function<void(const details::OptionConcept&)> cb) const {
for (const auto& [_, opt] : _impl) {
cb(opt);
for (const auto& itr : _impl) {
cb(itr.second);
}
}

Expand Down
8 changes: 5 additions & 3 deletions src/plugins/intel_npu/thirdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bdc1c22

Please sign in to comment.