[zeromq-dev] Fwd: Warnings as errors and gcc 4.3

Garrett Smith g at rrett.us.com
Tue Apr 28 05:36:03 CEST 2009

I'm using gcc 4.3.2 and am running into some warnings, which are treated
as errors in the zeromq build.

The warnings are:

  error: suggest explicit braces to avoid ambiguous "else"

The spots I saw these come up in are:


Rather than bother adding the missing brackets, I removed -Werror from
the makefiles.

I suppose running with -Werror is fine, but it does introduce these
types of problems. It might be something you let users opt in for --
e.g. contributors might be required to run with that switch (easily
added in ./configure).


More information about the zeromq-dev mailing list