Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium

New issue 419 by mattycla...@gmail.com: enumerators have comma on last value
http://code.google.com/p/protobuf/issues/detail?id=419

What steps will reproduce the problem?
1. build with g++-4.6.3 --std=c++ -pedantic -pedantic-errors
2. See errors about commas at end of enumerators

What is the expected output? What do you see instead?
In file included from google/protobuf/2.4.1/vendor/install/include/google/protobuf/wire_format_lite_inl.h:43:0,
                 from protobuf/inc/message.pb.cc:10:
google/protobuf/2.4.1/vendor/install/include/google/protobuf/wire_format_lite.h:94:34: error: comma at end of enumerator list [-pedantic] google/protobuf/2.4.1/vendor/install/include/google/protobuf/wire_format_lite.h:117:29: error: comma at end of enumerator list [-pedantic] google/protobuf/2.4.1/vendor/install/include/google/protobuf/wire_format_lite.h:132:29: error: comma at end of enumerator list [-pedantic]
In file included from protobuf/inc/message.pb.cc:11:0:
google/protobuf/2.4.1/vendor/install/include/google/protobuf/descriptor.h:322:29: error: comma at end of enumerator list [-pedantic] google/protobuf/2.4.1/vendor/install/include/google/protobuf/descriptor.h:341:29: error: comma at end of enumerator list [-pedantic] google/protobuf/2.4.1/vendor/install/include/google/protobuf/descriptor.h:352:28: error: comma at end of enumerator list [-pedantic]
In file included from protobuf/inc/message.pb.cc:13:0:
google/protobuf/2.4.1/vendor/install/include/google/protobuf/wire_format.h:226:14: error: comma at end of enumerator list [-pedantic]

What version of the product are you using? On what operating system?
2.4.1
Ubuntu 12.04
g++-4.6.3

Please provide any additional information below.

Probably a generation problem - just need to not generate the comma on the end of the last enumeration?

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to