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:
[EMAIL PROTECTED] tester]$ make
cc -lm tester.c -o tester
[EMAIL PROTECTED] tester]$ ./tester
-0.781213
[EMAIL PROTECTED] 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,
--
__________________________________________________________________
/ [EMAIL PROTECTED] [EMAIL PROTECTED] \
| 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:[EMAIL PROTECTED]
Help mailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi