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
Touch seeded packages, which is subscribed to protobuf in Ubuntu.
https://bugs.launchpad.net/bugs/1643959

Title:
  Unused parameter 'deterministic'

Status in protobuf package in Ubuntu:
  New

Bug description:
  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

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to