Re: [protobuf] Compilation warning with "arenas" option enabled for protobuf-3.1

2016-11-11 Thread 'Adam Cozzette' via Protocol Buffers
What version of g++ are you using? Also, do you have a way of determining what actual line of code the compiler is warning about there? I tried building with -Wstrict-aliasing=2 at commit df8390790a and saw a few warnings like this: ./google/protobuf/generated_message_util.h:94:66: warning: deref

[protobuf] Compilation warning with "arenas" option enabled for protobuf-3.1

2016-11-11 Thread changchunzhao . tnsi
I have below option in my .proto file: *option cc_enable_arenas = true;* But g++ for Linux gives below warning: *cc1plus: warning: dereferencing pointer 'prephitmp.4925' does break strict-aliasing rules* Will this cause issue and how to solve it? -- You received this message because you are

[protobuf] Re: Json Program to Protobuf

2016-11-11 Thread 'Jon Skeet' via Protocol Buffers
It's not really clear to me what exactly the problem is, or what the server is expecting. Are you just trying to make a POST request with the body as a byte array? If so, that shouldn't be too hard - just call ToByteArray on the message, and then use that as the body of the request... Have you

[protobuf] Re: How can i determine type of ProtobufClass from received byte[] in C#?

2016-11-11 Thread KMG
Thank you for your helpful answer. I will check another method for this problem. like as wrapping protobuf data in packet header... etc... Have a nice day Jon Skeet. :) 2016년 11월 11일 금요일 오전 8시 0분 55초 UTC+9, Jon Skeet 님의 말: > There's no way of doing this - it's not a C# limitation, but just the