[rrd-developers] Re: Warnings at compile time
Alex van den Bogaerdt
alex at slot.hollandcasino.nl
Tue Apr 2 05:45:34 MEST 2002
Tobias Oetiker wrote:
> About the warnings, we get them because I have the most zealous,
> warnings enabled in the makefiles ...
Understood. There seem to be different CFLAGS for zlib, perhaps
we should use the original authors settings when compiling anything
that is not rrdtool itself ?
> How about sending the libart author a 'bug' report, afterall this
> will not be an rrdtool specific problem ...
Indeed, rrdtool itself also has this problem. It turns out to be a
function by the way, not a variable. A small test program shows that
I can indeed use the function "y1" but only if I link to the math library.
tester.c:
#include <stdio.h>
#include <math.h>
int main(void) {
printf("%f\n",y1(1));
return 0;
}
Makefile:
CFLAGS = -lm
all: tester
program run:
[alex at home tester]$ make
cc -lm tester.c -o tester
[alex at home tester]$ ./tester
-0.781213
[alex at home tester]$
Best of course is to find a way to disable these functions. I've
tried and failed. Perhaps someone else knows how to do this.
I don't know what is second best. IMHO warnings for shadowed
variables are good, if they do not occur normally.
Before writing a note to the author of libart I need to we're not
going to change CFLAGS for it.
cheers,
--
__________________________________________________________________
/ alex at slot.hollandcasino.nl alex at ergens.op.het.net \
| work private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/ |
| http://rrdtool.eu.org --> tutorial |
+----------------------------------------------------------------------+
--
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