digideskio / protobuf-c

Automatically exported from code.google.com/p/protobuf-c
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

ISO C does not allow extra ‘;’ outside of a function (init functions) #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Compile generated code with the following flags:

-g -Wunsafe-loop-optimizations  -Wunreachable-code -g -Wall -Wextra 
-Wlogical-op  -Wredundant-decls  -Wswitch-default -Wswitch-enum -Wshadow
-Wcast-align -Wwrite-strings -Wnested-externs  -Wdisabled-optimization
-Wstack-protector -O

What is the expected output? What do you see instead?
Compiler error: "ISO C does not allow extra ‘;’ outside of a function."

Each of the new init functions have a semicolon immediately after the
function's closing bracket.

What version of the product are you using? On what operating system?
protobuf-c 0.6, protobuf 2.0.1, Fedora 9/i686

Please provide any additional information below.

Thanks for the continued improvements to this project!

Original issue reported on code.google.com by AdamJMo...@gmail.com on 8 Dec 2008 at 8:14

GoogleCodeExporter commented 8 years ago
oops, yeah, fixed in 0.7.

thanks for testing & reporting bugs.

Original comment by lahike...@gmail.com on 17 Dec 2008 at 4:52