From: Tobias 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-Tag: 1.3rc2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a53fafc6b7edace9ab622d68028e934cfe1f8fd;p=thirdparty%2Frrdtool-1.x.git do not declare DEBUG functions unless compiled in DEBUG mode -- Florian octo Forster git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1316 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_open.c b/src/rrd_open.c index 87fd7666..4acaa8fd 100644 --- a/src/rrd_open.c +++ b/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 */