oops... yes I forgot about the "-isystem" option...  I will use this
for the protobuf headers.

I am still a little surprised that protobuf didn't pass the pedantic
test.  I've use lots of third party headers and haven't ran into this
problem before.

thanks for the quick response.




On Jul 27, 7:08 pm, Kenton Varda <[email protected]> wrote:
> Again, GCC will ignore warnings as long as it recognizes the protobuf
> headers as "system headers".  You can explicitly mark an include directory
> as containing system headers by using -isystem instead of -I.
>
> On Mon, Jul 27, 2009 at 7:02 PM, achap <[email protected]> wrote:
>
> > I am not using -Werror, but I am using "-W -pedantic", which
> > apparently is the problem.
>
> > what is the likely hood that this will work with the pedantic warning
> > enabled?  My build system forces pendant... I can override it, but I'd
> > rather not if I don't have too.
>
> > Thanks.
>
> > On Jul 27, 6:39 pm, Kenton Varda <[email protected]> wrote:
> > > What compiler flags are you using?  It looks like you have an excessively
> > > pedantic warning mode enabled, with -Werror to make warnings into errors,
> > > and it is applying even to system headers (usually warnings in system
> > > headers aren't reported).
>
> > > On Mon, Jul 27, 2009 at 6:27 PM, achap <[email protected]> wrote:
>
> > > > forgot to mention... I'm using protobuf version 2.1.0
>
> > > > On Jul 27, 6:25 pm, achap <[email protected]> wrote:
> > > > > anyone else experience compile errors when building against the
> > > > > descriptor.h and wire_format.h files?
>
> > > > > error messages below:
>
> > > > > include/google/protobuf/descriptor.h:322: error: comma at end of
> > > > > enumerator list
> > > > > include/google/protobuf/descriptor.h:341: error: comma at end of
> > > > > enumerator list
> > > > > include/google/protobuf/descriptor.h:352: error: comma at end of
> > > > > enumerator list
> > > > > include/google/protobuf/descriptor.h:1202: error: extra ';'
> > > > > include/google/protobuf/descriptor.h:1219: error: extra ';'
> > > > > include/google/protobuf/descriptor.h:1239: error: extra ';'
> > > > > include/google/protobuf/descriptor.h:1245: error: extra ';'
> > > > > include/google/protobuf/descriptor.h:1253: error: extra ';'
> > > > > include/google/protobuf/descriptor.h:1260: error: extra ';'
> > > > > include/google/protobuf/descriptor.h:1270: error: extra ';'
> > > > > include/google/protobuf/wire_format.h:176: error: comma at end of
> > > > > enumerator list
> > > > > make[1]: *** [.obj/Linux/32/MyFile.o] Error 1
> > > > > make: *** [all] Error 2
>
> > > > > Im using gcc 4.1.2 on RedHat rhel 5.3
>
> > > > > I can fix the headers to make them work, but I just figured I must be
> > > > > doing something incorrectly if I had to do so.
--~--~---------~--~----~------------~-------~--~----~
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