When compiling grpc (gRPC-C++.podspec:  grpc_version = '1.17.0') I get an 
error because of the use of memset on a class.

src/cpp/common/channel_filter.cc: In member function ‘grpc_linked_mdelem* 
grpc::MetadataBatch::AddMetadata(const string&, const string&)’:
src/cpp/common/channel_filter.cc:33:48: warning: ‘void* memset(void*, int, 
size_t)’ clearing an object of non-trivial type ‘grpc_linked_mdelem’ {aka 
‘struct grpc_linked_mdelem’}; use assignment or value-initialization 
instead [-Wclass-memaccess]
   33 |   memset(storage, 0, sizeof(grpc_linked_mdelem));
      |                                                ^

If this is fixed in a later version of gRPC, please let me know which one 
fixed it, if not when would a fix be expected?

Thanks,
     David


-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/625e9478-a0db-4c17-898b-12c092c0a4d1n%40googlegroups.com.

Reply via email to