This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: gcc -O -Wconversion with glibc2 - warnings from headers.
On Mon, May 29, 2000 at 11:01:52AM -0700, Kaz Kylheku wrote:
> On 29 May 2000, Oleg Goldshmidt wrote:
> > /usr/include/bits/mathinline.h:431: warning: passing arg 1 of `__builtin_fabsf' as `float' rather than `double' due to prototype
>
> The problem is that you are using warnings that are not intended to be
> ``strict''. The -Wconversion option has a narrowly defined, specific purpose,
> and that purpose is not to find errors in modern C programs.
exactly, and this is in the 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 really intended for production use, only for shakedown
compiles after converting an old program to standard C.
Regards, gael