Status: New
Owner: [email protected]
Labels: Type-Defect Priority-Medium

New issue 417 by [email protected]: Extra semi-colon in PROTOBUF_DEFINE_OPTIONS_ACCESSOR and READ_REPEATED_FIXED_SIZE_PRIMITIVE
http://code.google.com/p/protobuf/issues/detail?id=417

What steps will reproduce the problem?
1. Include google/protobuf/wire_format_lite_inl.h and google/protobuf/descriptor.h
2. Build with gcc -pedantic and -pedantic-errors

What is the expected output? What do you see instead?
In file included from protobuf/inc/message.pb.cc:10:0:
/home/matt/svn/TC/third_party/libraries/google/protobuf/2.4.1/vendor/install/include/google/protobuf/wire_format_lite_inl.h:303:301: error: extra ‘;’ [-pedantic] /home/matt/svn/TC/third_party/libraries/google/protobuf/2.4.1/vendor/install/include/google/protobuf/wire_format_lite_inl.h:304:301: error: extra ‘;’ [-pedantic] /home/matt/svn/TC/third_party/libraries/google/protobuf/2.4.1/vendor/install/include/google/protobuf/wire_format_lite_inl.h:305:300: error: extra ‘;’ [-pedantic] /home/matt/svn/TC/third_party/libraries/google/protobuf/2.4.1/vendor/install/include/google/protobuf/wire_format_lite_inl.h:306:300: error: extra ‘;’ [-pedantic] /home/matt/svn/TC/third_party/libraries/google/protobuf/2.4.1/vendor/install/include/google/protobuf/wire_format_lite_inl.h:307:294: error: extra ‘;’ [-pedantic] /home/matt/svn/TC/third_party/libraries/google/protobuf/2.4.1/vendor/install/include/google/protobuf/wire_format_lite_inl.h:308:299: error: extra ‘;’ [-pedantic]
In file included from protobuf/inc/message.pb.cc:11:0:
/home/matt/svn/TC/third_party/libraries/google/protobuf/2.4.1/vendor/install/include/google/protobuf/descriptor.h:1206:79: error: extra ‘;’ [-pedantic]
In file included from protobuf/inc/message.pb.cc:11:0:
/home/matt/svn/TC/third_party/libraries/google/protobuf/2.4.1/vendor/install/include/google/protobuf/descriptor.h:1223:82: error: extra ‘;’ [-pedantic]
In file included from protobuf/inc/message.pb.cc:11:0:
/home/matt/svn/TC/third_party/libraries/google/protobuf/2.4.1/vendor/install/include/google/protobuf/descriptor.h:1243:80: error: extra ‘;’ [-pedantic] /home/matt/svn/TC/third_party/libraries/google/protobuf/2.4.1/vendor/install/include/google/protobuf/descriptor.h:1249:90: error: extra ‘;’ [-pedantic]
In file included from protobuf/inc/message.pb.cc:11:0:
/home/matt/svn/TC/third_party/libraries/google/protobuf/2.4.1/vendor/install/include/google/protobuf/descriptor.h:1257:86: error: extra ‘;’ [-pedantic] /home/matt/svn/TC/third_party/libraries/google/protobuf/2.4.1/vendor/install/include/google/protobuf/descriptor.h:1264:84: error: extra ‘;’ [-pedantic] /home/matt/svn/TC/third_party/libraries/google/protobuf/2.4.1/vendor/install/include/google/protobuf/descriptor.h:1274:80: error: extra ‘;’ [-pedantic]

What version of the product are you using? On what operating system?
2.4.1 Fedora 17

Please provide any additional information below.

I think this is a generator error - it adds an extra semi colon on the end of the macro when it isn't needed.

--
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.

Reply via email to