Fixed some warnings for Windows

This commit is contained in:
Ilya Churaev
2023-05-31 14:04:42 +04:00
parent 0b9f6317bf
commit 23d7ed88b6
4 changed files with 11 additions and 0 deletions

View File

@@ -31,6 +31,9 @@ namespace ngraph {
class NGRAPH_API_DEPRECATED NGRAPH_API OpSet : public ov::OpSet {
public:
explicit OpSet(const ov::OpSet& opset);
NGRAPH_SUPPRESS_DEPRECATED_START
OpSet(const ngraph::OpSet& opset);
NGRAPH_SUPPRESS_DEPRECATED_END
OpSet() = default;
/// \brief Insert an op into the opset with a particular name and factory
void insert(const std::string& name, const NodeTypeInfo& type_info, FactoryRegistry<Node>::Factory factory) {

View File

@@ -14,6 +14,8 @@
NGRAPH_SUPPRESS_DEPRECATED_START
ngraph::OpSet::OpSet(const ov::OpSet& opset) : ov::OpSet(opset) {}
ngraph::OpSet::OpSet(const ngraph::OpSet& opset) : ov::OpSet(opset) {}
ov::OpSet::OpSet(const std::string& name) : m_name(name) {}
ov::OpSet::OpSet(const ov::OpSet& opset) {

View File

@@ -4,6 +4,9 @@
set(TARGET_NAME "frontend_common")
# Suppress warnings with FactoryRegistry autogenerated destructor
ov_deprecated_no_errors()
if(CMAKE_COMPILER_IS_GNUCXX)
ie_add_compiler_flags(-Wmissing-declarations)
endif()

View File

@@ -2,6 +2,9 @@
// SPDX-License-Identifier: Apache-2.0
//
#include "ie_api.h"
IE_SUPPRESS_DEPRECATED_START
#include "cnn_network_ngraph_impl.hpp"
#include <cassert>