warnings compiling generated code on Snow Leopard

2009-08-31 Thread Joshua Haberman
I just installed Snow Leopard, which ships with: $ gcc --version i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY

Re: warnings compiling generated code on Snow Leopard

2009-08-31 Thread Joshua Haberman
...@google.com wrote: What compiler flags are you using?  Since you were able to compile libprotobuf itself, I assume you have turned on additional warnings for your own project? On Mon, Aug 31, 2009 at 3:26 PM, Joshua Haberman jhaber...@gmail.comwrote: I just installed Snow Leopard, which ships

Re: warnings compiling generated code on Snow Leopard

2009-08-31 Thread Joshua Haberman
On Aug 31, 5:17 pm, Michael Poole mdpo...@troilus.org wrote: Joshua  Haberman writes: The protobuf library compiled and installed fine, but the generated classes threw warnings (and since I was compiling with -Werror, failed to compile).  The warning was: benchmarks

packed encoding question

2009-05-31 Thread Joshua Haberman
I was reading the documentation about packed encoding [0] (haven't dug into the code), and was wondering if parsers are expected to be able to read packed encoding whether or not [packed=true] is specified. Unlike any other option (AFAIK), [packed=true] actually changes the bytes that encoders

Re: GPB on non-Linux, non-Windows OS?

2009-03-01 Thread Joshua Haberman
Stripping down protobufs to their essence is *exactly* what I am doing with pbstream: http://github.com/haberman/pbstream If you can hang tight for just another few weeks, I think you're going to like what you see. The streaming decoder is more or less finished: it's just over 500 lines of C99

Re: event-based decoding / new C implementation

2009-02-23 Thread Joshua Haberman
On Feb 23, 9:51 am, Caleb caleb.epst...@gmail.com wrote: On Feb 6, 5:56 pm, Joshua  Haberman jhaber...@gmail.com wrote: Does proto2 support event-based decoding?  That is, is there a parsing mode that calls user-specified callbacks when it encounters values/ submessages/etc. rather than