This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: -Wconversion ignores type casts


* 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]