missing prototype for abs()
Andreas Jaeger
aj@suse.de
Wed Jun 28 12:50:00 GMT 2000
>>>>> Jes Sorensen writes:
> Hi
> The latest gcc from sourceware moans if one doesn't include stdlib.h to
> get a protoytype for abs().
> I wouldn't be surprised if there are other occurencies, I just noticed
> this one because I also hit a compiler crash with it.
On ia32 there're should be no occurences. I'm using a current gcc
snapshot and check for new warnings - and fixed those already.
But I guess that you'll find more such problems in code that's not
build on ia32.
Andreas
> Jes
> 2000-06-28 Jes Sorensen <jes@linuxcare.com>
> * sysdeps/ieee754/dbl-64/e_exp.c: Add include stdlib.h to get
> prototype for abs().
> --- sysdeps/ieee754/dbl-64/e_exp.c~ Wed Jul 14 01:48:30 1999
> +++ sysdeps/ieee754/dbl-64/e_exp.c Wed Jun 28 21:00:25 2000
> @@ -55,6 +55,7 @@
> #ifndef _GNU_SOURCE
> #define _GNU_SOURCE
> #endif
> +#include <stdlib.h>
> #include <float.h>
> #include <ieee754.h>
> #include <math.h>
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
More information about the Libc-hacker
mailing list