Thanks for your reply.

Here I attached a simple .proto file to demonstrate this warning message:

$ protobuf-3.1/bin/protoc --cpp_out=. demo.proto 
$ /usr/bin/g++ -Iprotobuf-3.1/include -c -Wall -O2 -Wno-long-long 
-o demo.pb.o
In member function 'virtual bool 
cc1plus: warning: dereferencing pointer 'prephitmp.1630' does break 
demo.pb.h:266: note: initialized from here
cc1plus: note: initialized from here

Please let me know if anything else you need to debug further.


On Friday, November 11, 2016 at 3:57:03 PM UTC-5, 
> 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 subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Attachment: demo.proto
Description: Binary data

Reply via email to