Closed GoogleCodeExporter closed 8 years ago
with shellinabox-2.4.tar.gz
Original comment by anders.n...@gmail.com
on 14 Feb 2009 at 5:02
In general -Werror is a great option as it forces code to be written more
cleanly and
portably. In most cases, compilers only warn about code that is rather suspect.
So,
it makes sense to avoid these issues.
The problem happens when compilers invent new experimental and aggressive
warnings,
and distributions then decide to crank up the default warning level past the
recommended settings. Ubuntu for some reason decides to ship with "-Wformat=2"
by
default. Normally, "gcc" does not turn on this warning, as it is known to
generate a
large number of false positives (as you just discovered, yourself).
I implemented some work-arounds that should tell the compiler that no warning is
necessary. I tested compilation with "-Wformat=2" and it now passes. This code
is now
in Subversion.
But it is possible that Ubuntu turned on some other aggressive warnings that
trigger
in other parts of the code. If so, please let me know and I'll add work-arounds
for
those, too.
Original comment by zod...@gmail.com
on 15 Feb 2009 at 8:10
Original comment by zod...@gmail.com
on 15 Feb 2009 at 8:10
Original issue reported on code.google.com by
anders.n...@gmail.com
on 14 Feb 2009 at 5:01