This is the mail archive of the gcc-bugs@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: egcs conversion warning bug (-Wconversion)


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


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