Skip to content

Commit

Permalink
[IE][BUILD] Fix C5208 warning under Windows (openvinotoolkit#2628)
Browse files Browse the repository at this point in the history
* C++ feature in C `typedef struct` code.
* The warning can be promoted to error in dependent projects.

C5208: unnamed class used in typedef name cannot declare members other than
non-static data members, member enumerations, or member classes
  • Loading branch information
Vladislav Vinogradov authored Oct 13, 2020
1 parent 15a338e commit ab0fb29
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
namespace ngraph {
namespace op {

typedef struct {
struct InterpolateIEAttrs {
int height = -1;
int width = -1;
float zoom_factor = 0;
Expand All @@ -26,7 +26,7 @@ typedef struct {
std::string mode = "";
int pad_beg = 0;
int pad_end = 0;
} InterpolateIEAttrs;
};

class TRANSFORMATIONS_API Interp : public Op {
public:
Expand All @@ -45,11 +45,11 @@ class TRANSFORMATIONS_API Interp : public Op {
InterpolateIEAttrs m_attrs;
};

typedef struct {
struct ResampleIEAttrs {
bool antialias = true;
int64_t factor = 0;
std::string mode = "";
} ResampleIEAttrs;
};

class TRANSFORMATIONS_API ResampleV2 : public Op {
public:
Expand Down

0 comments on commit ab0fb29

Please sign in to comment.