Protobuf: warning C4800

Created on 28 Aug 2017  路  1Comment  路  Source: protocolbuffers/protobuf

I use protobuf 3.4.0 in 64bit windows. but i got 3 warning C4800.
warning C4800 'goole::protobuff::internal::AtomicWord' : forcing value to bool 'true' or 'false' (performance warning) \protobuf\google\protobuf\io\coded_stream.h
warning C4800 'goole::protobuff::internal::Atomic64' : forcing value to bool 'true' or 'false' (performance warning) \protobuf\google\protobuf\io\coded_stream.h
warning C4800 'goole::protobuf::uint32' : forcing value to bool 'true' or 'false' (performance warning) \protobuf\google\protobuf\generated_message_util.h

how can i fix this warning?
(now i use pragma warning disable)

customer issue

Most helpful comment

Am I correct in understanding that this was closed as "customer issue"?

I would like to comment here that I have been dealing with those warnings for a long time too. Normally I resort to patching the code and try to fix them but it's getting to a point that I move to putting warning pragmas around including protobuf's headers.
Which is not much of a problem per se but I would like to ask: Does the protobuf project feel comfortable with users having to pragma warnings out when including generated headers? Wouldn't it be possible and in fact very much desirable to not be one of those libs?

>All comments

Am I correct in understanding that this was closed as "customer issue"?

I would like to comment here that I have been dealing with those warnings for a long time too. Normally I resort to patching the code and try to fix them but it's getting to a point that I move to putting warning pragmas around including protobuf's headers.
Which is not much of a problem per se but I would like to ask: Does the protobuf project feel comfortable with users having to pragma warnings out when including generated headers? Wouldn't it be possible and in fact very much desirable to not be one of those libs?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

blowmage picture blowmage  路  73Comments

MartinDong picture MartinDong  路  49Comments

cl51287 picture cl51287  路  29Comments

joshuarubin picture joshuarubin  路  69Comments

mkosieradzki picture mkosieradzki  路  70Comments