GauthamBanasandra commented on pull request #2856:
URL: https://github.com/apache/hadoop/pull/2856#issuecomment-812647587


   This PR fixes some of the warnings of the following kind that were reported 
in PR https://github.com/apache/hadoop/pull/2792.
   
   ```
   [ 48%] Building CXX object 
main/native/libhdfspp/tests/CMakeFiles/rpc_engine_test.dir/rpc_engine_test.cc.o
   
/mnt/d/projects/apache/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/rpc_engine_test.cc:
 In function ‘std::pair<boost::system::error_code, 
std::__cxx11::basic_string<char> > RpcResponse(const 
hadoop::common::RpcResponseHeaderProto&, const string&, const 
boost::system::error_code&)’:
   
/mnt/d/projects/apache/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/rpc_engine_test.cc:92:56:
 warning: ‘int google::protobuf::MessageLite::ByteSize() const’ is deprecated: 
Please use ByteSizeLong() instead [-Wdeprecated-declarations]
      92 |       pbio::CodedOutputStream::VarintSize32(h.ByteSize()) +
         |                                                        ^
   In file included from 
/usr/local/include/google/protobuf/generated_enum_util.h:36,
                    from /usr/local/include/google/protobuf/map.h:49,
                    from 
/usr/local/include/google/protobuf/generated_message_table_driven.h:34,
                    from 
/mnt/d/projects/apache/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/src/out/build/WSL-GCC-Debug/main/native/libhdfspp/tests/test.pb.h:26,
                    from 
/mnt/d/projects/apache/hadoop/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tests/rpc_engine_test.cc:22:
   /usr/local/include/google/protobuf/message_lite.h:408:7: note: declared here
     408 |   int ByteSize() const { return internal::ToIntSize(ByteSizeLong()); 
}
         |       ^~~~~~~~
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to