[rrd-developers] Re: Warnings at compile time

Peter Speck speck at ruc.dk
Mon Apr 1 05:31:50 MEST 2002


Hi,

In /usr/include/math.h I have:
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
extern __pure double y0 __P((double));

and in /usr/include/stdio.h
#if !defined (_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
int  snprintf __P((char *, size_t, const char *, ...));

so it seems like I can't get snprintf (and frinds) without y0 (and 
friends)·

So we can't avoid warnings for use of the names: j0, j1, jn, lgamma, y0, 
y1, yn

By scattering
	#define y0 y_0
	#define y1 y_1
in
	libraries/libart_lgpl-2.3.7/art_gray_svp.h
	libraries/libart_lgpl-2.3.7/art_rgb_affine.h
	libraries/libart_lgpl-2.3.7/art_rgb_svp.h
	src/rrd_gfx.h
I'm mostly left with:

warning: ANSI C does not support `long long'
    (mostly /usr/include files)
warning: ANSI C forbids const or volatile functions
    (mostly zlib)
warning: declaration of `index' shadows global declaration

----
  - Peter Speck


--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-developers mailing list