This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


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

Re: gcc -O -Wconversion with glibc2 - warnings from headers.


> /* We meant to use fabs(). Including <stdlib.h> does not change
>    anything */

Is this g++? If so, then a g++ bug is exacerbating your problem.

If so, abs() is a builtin, and g++ does not currently warn if a builtin
has no prototype in scope when it is called. This has been patched in
the gcc mainline; see
<http://gcc.gnu.org/ml/gcc-patches/2000-05/msg01515.html>.

I'm not sure how easy it would be to backport it to 2.95.x; the C++
frontend has undergone *big* changes since then (functions-as-trees
being the biggest I can think of, but there are *lots*.)

-- 
`People's needs are not `finance'. You can't eat a bank.' --- Alan Rosenthal

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