ellzey/libevhtp — Issue #8: Build without "unused but set" warnings
Author: nmathewson
Created: 2011-12-15 01:01:02+00:00
State: open

With GCC 4.6, I get a big pile of "warning: variable ‘...’ set but not used [-Wunused-but-set-variable]" warnings.

It's nice to build without warnings, since any "expected" warnings can keep hackers from noticing new and unexpected warnings.

The simplest fix here would be to add '-Wno-unused-but-set-variable' to cflags when building with (appropriate version of) gcc. I'd submit a patch for that myself, but I don't know cmake stuff.