Can we insert compiler warning for C++ builds as well in cases where deprecated 
field is used ?

Regards,
Sumit Kumar

On 14 Mar, 2013, at 2:36 AM, [email protected] wrote:

> 
> Comment #3 on issue 329 by [email protected]: Add support for [deprecated 
> = true] on all types of definitions
> http://code.google.com/p/protobuf/issues/detail?id=329
> 
> Deprecation is an integral part of evolution. Say, we introduce a new field 
> in version 1.5, then a few months down the line, we no longer need it. We 
> deprecate it in the next version, say that will be 1.12. We ship version 1.12 
> to the consumers and ask them to remove references to the deprecated field. 
> In version 2.0 we remove the field from the message completely.
> 
> The current version of protoc produces @Deprecated annotations in java 
> classes for fields marked with [deprecated = true], which in turn produces a 
> visible warning when some other java code is referencing the deprecated 
> members of the message or builder class.
> 
> I am not sure what would be the implication of deprecating the entire proto 
> file. I can think of two possible (complementary, not mutually exclusive) 
> options:
> 1) protoc outputs a warning whenever a deprecated file is being imported
> 2) protoc automatically treats all messages defined in the file as deprecated 
> and generates annotations to that effect
> 
> -- 
> You received this message because this project is configured to send all 
> issue notifications to this address.
> You may adjust your notification preferences at:
> https://code.google.com/hosting/settings
> 
> -- 
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/protobuf?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> 

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to