Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 435 by [email protected]: Compilation fail with GCC flag
combination
http://code.google.com/p/protobuf/issues/detail?id=435
What steps will reproduce the problem?
1. Using gcc with flags (-DNDEBUG=1 -Werror -Wall) compile any generated
CPP protobuf file.
What is the expected output? What do you see instead?
In file included from ../client/protocol/ping.pb.cc:16:0:
/foopath/include/google/protobuf/wire_format.h:293:13: error: unused
parameter ‘data’ [-Werror=unused-parameter]
/foopath/include/google/protobuf/wire_format.h:293:13: error: unused
parameter ‘size’ [-Werror=unused-parameter]
/foopath/include/google/protobuf/wire_format.h:293:13: error: unused
parameter ‘op’ [-Werror=unused-parameter
Versions:
gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2)
Path: .
URL: http://protobuf.googlecode.com/svn/trunk/src/google/protobuf
Repository Root: http://protobuf.googlecode.com/svn
Repository UUID: 630680e5-0e50-0410-840e-4b1c322b438d
Revision: 434
Node Kind: directory
Schedule: normal
Last Changed Author: [email protected]
Last Changed Rev: 433
Last Changed Date: 2012-11-30 14:38:00 -0800 (Fri, 30 Nov 2012)
---
Attached is patch to void offending variables.
Attachments:
wire_format.patch 458 bytes
--
You received this message because you are subscribed to the Google Groups "Protocol
Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.