Skip to content

Commit

Permalink
Fixed compile warning (-Wdeprecated-declarations). Code review.
Browse files Browse the repository at this point in the history
  • Loading branch information
proydakov committed Oct 16, 2020
1 parent 7640396 commit e1376e6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions tools/converter/source/onnx/OnnxUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ bool onnx_read_proto_from_binary(const char* filepath, google::protobuf::Message

#if GOOGLE_PROTOBUF_VERSION >= 3011000
codedstr.SetTotalBytesLimit(INT_MAX);
#else
codedstr.SetTotalBytesLimit(INT_MAX, INT_MAX / 2);
#endif

bool success = message->ParseFromCodedStream(&codedstr);
Expand Down
2 changes: 0 additions & 2 deletions tools/converter/source/tensorflow/TfUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ bool tf_read_proto_from_binary(const char* filepath, google::protobuf::Message*

#if GOOGLE_PROTOBUF_VERSION >= 3011000
codedstr.SetTotalBytesLimit(INT_MAX);
#else
codedstr.SetTotalBytesLimit(INT_MAX, INT_MAX / 2);
#endif

bool success = message->ParseFromCodedStream(&codedstr);
Expand Down

0 comments on commit e1376e6

Please sign in to comment.