This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs conversion warning bug (-Wconversion)
- To: Hakon Bugge <hakon dot bugge at scali dot no>
- Subject: Re: egcs conversion warning bug (-Wconversion)
- From: Zack Weinberg <zack at bitmover dot com>
- Date: Mon, 16 Aug 1999 08:02:35 -0700
- cc: egcs-bugs at egcs dot cygnus dot com, taa at siri dot scali dot no
Hakon Bugge wrote:
> To whom it might concern,
>
> Synopsis: gcc generates lots of annoying and presumable false warning
> messages with the -Wconversion switch when string functions are used.
You don't want to use -Wconversion.
>From the glibc FAQ:
3.17. I get floods of warnings when I use -Wconversion and include
<string.h> or <math.h>.
{ZW} <string.h> and <math.h> intentionally use prototypes to override
argument promotion. -Wconversion warns about all these. You can safely
ignore the warnings.
-Wconversion isn't intended for production use, only for shakedown
compiles after converting an old program to standard C.
zw