This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Warning for unadorned 0 in varargs lists?
- From: Eddie Kohler <kohler at icir dot org>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 19 Aug 2004 15:58:54 -0700
- Subject: Warning for unadorned 0 in varargs lists?
Hi all,
I habitually use "0" for a null pointer, which causes serious problems
on 64-bit machines when passed to a varargs function.
So an optional [i.e. no -Wall] GCC warning that complained when an
unadorned, uncast "0" was passed to a varargs function would help me a
lot, and probably others.
Would such a warning be considered for inclusion in GCC? Or do people
think it might generate too many false positives?
Eddie Kohler