Skip to content

Commit

Permalink
Disabled additional warnings produced by Protobuf generated sources
Browse files Browse the repository at this point in the history
  • Loading branch information
gkrivor committed Jan 14, 2025
1 parent 5b6b853 commit 0debedf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/frontends/onnx/onnx_common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,15 @@ ov_add_clang_format_target(${TARGET_NAME}_clang FOR_TARGETS ${TARGET_NAME})
if(CMAKE_COMPILER_IS_GNUCXX OR OV_COMPILER_IS_CLANG OR (OV_COMPILER_IS_INTEL_LLVM AND UNIX))
target_compile_options(${TARGET_NAME} PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-Wno-missing-declarations>)
endif()
# Protobuf generates files which cause this warning
# Protobuf generates files which cause a following warnings
if(SUGGEST_OVERRIDE_SUPPORTED)
target_compile_options(${TARGET_NAME} PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-Wno-suggest-override>)
endif()

if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
# 4244 conversion from 'XXX' to 'YYY', possible loss of data
ov_add_compiler_flags(/wd4244)
# '<': signed/unsigned mismatch
ov_add_compiler_flags(/wd4018)
endif()

ov_install_static_lib(${TARGET_NAME} ${OV_CPACK_COMP_CORE})

0 comments on commit 0debedf

Please sign in to comment.