This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Avoiding compiler warnings
On Fri, Aug 17, 2012 at 07:09:47PM +0000, Joseph S. Myers wrote:
> Avoiding new warnings would be a lot more practical if we used -Werror
> (with -Wno-error=uninitialized or other such options added on a per-file
> basis for files where avoiding the warnings seems too problematic).
I'm all for this. I think we should file a RFE in the BZ. I'll try
to look at it.
With trunk gcc I'm seeing a few -Wstrict-aliasing warnings, two
-Wstrict-aliasing and two -Wformat warnings (x86_64). So we'd need to
fix these...
However, with --enable-all-warnings, there are tons of various
warnings coming from e.g. -Wcast-qual, -Wsign-compare, etc. So it'd be
impossible to use those two together.
Marek