[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] Re: xalloc.h gcc -Wundef fix
From: |
Jim Meyering |
Subject: |
Re: [Bug-gnulib] Re: xalloc.h gcc -Wundef fix |
Date: |
Thu, 28 Aug 2003 19:31:32 +0200 |
Bruno Haible <address@hidden> wrote:
> Simon Josefsson wrote:
>> I'm still interested in this though, as I'm trying to find a good
>> CFLAGS that catches most problems I'll discover later
>
> I can recommend "-W -Wall -Wno-sign-compare".
I can relate to your wanting to use -Wno-sign-compare.
The sign-compare warnings can be hard to fix properly --
i.e., without resorting to casts.
I use these for coreutils and for any other project where I have control:
-O -W -Wall -Wshadow -Wimplicit-int -Wformat-security -fno-common
Of course, pragmatism sometimes dictates turning off a particular
type of warning for individual files, but I haven't had to resort to
that for coreutils.