Status: New
Labels: Type-Defect Priority-Medium

New issue 446 by Fix unused parameter warnings

What steps will reproduce the problem?
1. Build generated code with -Werror,-Wunused-parameter

What is the expected output? What do you see instead?
In file included from monitor/head/protobuf/Stream.pb.h:23:
protobuf/head/target/include/google/protobuf/repeated_field.h:1197:54: error: unused parameter
      'ignores_parameter' [-Werror,-Wunused-parameter]
  RepeatedFieldBackInsertIterator<T>& operator++(int ignores_parameter) {
protobuf/head/target/include/google/protobuf/repeated_field.h:1228:57: error: unused parameter
      'ignores_parameter' [-Werror,-Wunused-parameter]
  RepeatedPtrFieldBackInsertIterator<T>& operator++(int ignores_parameter) {
protobuf/head/target/include/google/protobuf/repeated_field.h:1257:11: error: unused parameter
      'ignores_parameter' [-Werror,-Wunused-parameter]
      int ignores_parameter) {

What version of the product are you using? On what operating system?
Mac OS X 10.8.2
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)

Please provide any additional information below.
Proposed patch attached.

        unused_parameter.patch-  0 bytes

You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to