Public bug reported:

The current version of protbuf in the Ubuntu 16.10 Repository (3.0.0-7ubuntu3) 
includes this bug:
https://github.com/google/protobuf/issues/2032

"Every message generates an unused parameter warning for bool
deterministic in ::google::protobuf::uint8*
<message>::InternalSerializeWithCachedSizesToArray( bool deterministic,
::google::protobuf::uint8* target) const. "

My project uses -Werror, and thus does not compile in current Ubuntu
because of messages like this:

NSMessage.pb.cc: In member function ‘virtual google::protobuf::uint8* 
NS_Message::InternalSerializeWithCachedSizesToArray(bool, 
google::protobuf::uint8*) const’:
wifi/NSMessage.pb.cc:338:10: error: unused parameter ‘deterministic’ 
[-Werror=unused-parameter]
     bool deterministic, ::google::protobuf::uint8* target) const {
          ^~~~~~~~~~~~~
cc1plus: all warnings being treated as errors

I would expect code being created by protobuf does not cause any
warnings or errors.

This issue is fixed in protobuf's git repository with the following commit:
https://github.com/google/protobuf/commit/08b1c718e437041bfe0e6a28611621896e4fe904

** Affects: protobuf (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1643959

Title:
  Unused parameter 'deterministic'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/protobuf/+bug/1643959/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to