aakash-sahai / nanopb

Automatically exported from code.google.com/p/nanopb
zlib License
0 stars 0 forks source link

STATIC_ASSERT redefines typedefs #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a proto file importing another proto file.
2. Compile with clang or gcc

See change: 
http://code.google.com/r/steffensiering-clang-and-static-assert-fixes/source/det
ail?r=afbffdc46fb461448680f4cd401144315e3c2dc6

What is the expected output? What do you see instead?
Does not compile due to redefinition of typedef. Both clang and gcc

Original issue reported on code.google.com by steffen.siering on 11 Nov 2012 at 11:16

GoogleCodeExporter commented 9 years ago
Thanks, I'll test and merge your fixes soon.

A temporary workaround until next release is to give -DSTATIC_ASSERT= to 
disable the assertions.

Original comment by Petteri.Aimonen on 12 Nov 2012 at 7:37

GoogleCodeExporter commented 9 years ago
Merged (squashed together your afbff, ec22e, 155f8, 2c038):
https://code.google.com/p/nanopb/source/detail?r=cc29958d34e43ed889536ad4a723fce
819544785

Thanks!

Original comment by Petteri.Aimonen on 16 Nov 2012 at 7:36

GoogleCodeExporter commented 9 years ago
Fixed in 0.1.8

Original comment by Petteri.Aimonen on 13 Dec 2012 at 7:35