From: oetiker Date: Tue, 25 Mar 2008 22:56:41 +0000 (+0000) Subject: do not declare DEBUG functions unless compiled in DEBUG mode -- Florian octo Forster X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c9ffe1639b3c0e710784c274afac4864e9ac6645;p=rrdtool-all.git do not declare DEBUG functions unless compiled in DEBUG mode -- Florian octo Forster git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1316 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_open.c b/program/src/rrd_open.c index 87fd7666..4acaa8fd 100644 --- a/program/src/rrd_open.c +++ b/program/src/rrd_open.c @@ -268,6 +268,7 @@ rrd_file_t *rrd_open( } +#if defined DEBUG && DEBUG > 1 /* Print list of in-core pages of a the current rrd_file. */ static void mincore_print( @@ -310,6 +311,7 @@ void mincore_print( fprintf(stderr, "sorry mincore only works with mmap"); #endif } +#endif /* defined DEBUG && DEBUG > 1 */ /* drop cache except for the header and the active pages */