This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -Wconversion ignores type casts
- To: twhall at cuhk dot edu dot hk
- Subject: Re: -Wconversion ignores type casts
- From: Philipp Thomas <pthomas at suse dot de>
- Date: Tue, 27 Jun 2000 19:34:07 +0200
- Cc: gcc at gcc dot gnu dot org
- References: <10006272207.ZM13238@mariana.arch.cuhk.edu.hk>
* Theodore W. Hall (hall@mariana.arch.cuhk.edu.hk) [20000627 16:09]:
> The "-Wconversion" warning option seems to ignore explicit type casts
> on function arguments. I'm attaching a small C source file that
> demonstrates the problem.
Quoting a collegue of mine:
Don't use -Wconversion. It is useless with ISO-C code. It is only
usefull if you want to add prototypes to K&R-C code, and want to know
about cases where `foo (char)' is actually `foo (int)' in absense of
prototypes.
Philipp
--
Philipp Thomas <pthomas@suse.de>
Development, SuSE GmbH, Schanzaecker Str. 10, D-90443 Nuremberg, Germany
#define NINODE 50 /* number of in core inodes */
#define NPROC 30 /* max number of processes */
-- Version 7 UNIX for PDP 11, /usr/include/sys/param.h