-Wconversion ignores type casts
Philipp Thomas
pthomas@suse.de
Tue Jun 27 10:34:00 GMT 2000
* 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
More information about the Gcc
mailing list