!4948 Fix backend compilation error when -g is off

Merge pull request !4948 from JesseKLee/glog_off
pull/4948/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit 3eef4a4e06

@ -59,7 +59,7 @@ constexpr static uint32_t kDataIsInSharedMemory = 2;
/// \param rc[in] Status object /// \param rc[in] Status object
/// \param reply[in/out] pointer to pre-allocated protobuf object /// \param reply[in/out] pointer to pre-allocated protobuf object
inline void Status2CacheReply(const Status &rc, CacheReply *reply) { inline void Status2CacheReply(const Status &rc, CacheReply *reply) {
reply->set_rc(static_cast<google::int32>(rc.get_code())); reply->set_rc(static_cast<int32_t>(rc.get_code()));
reply->set_msg(rc.ToString()); reply->set_msg(rc.ToString());
} }

@ -76,7 +76,7 @@ class BaseRequest {
/// \brief Base class of a cache server request /// \brief Base class of a cache server request
/// \param type Type of the request /// \param type Type of the request
explicit BaseRequest(RequestType type) : type_(type) { rq_.set_type(static_cast<google::int32>(type_)); } explicit BaseRequest(RequestType type) : type_(type) { rq_.set_type(static_cast<int16_t>(type_)); }
virtual ~BaseRequest() = default; virtual ~BaseRequest() = default;
/// \brief A print method for debugging /// \brief A print method for debugging

Loading…
Cancel
Save