From 7c054952c4242d13a0b554e1d9c93cb0f9b94427 Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 25 Mar 2008 22:56:41 +0000 Subject: [PATCH] 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 --- src/rrd_open.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rrd_open.c b/src/rrd_open.c index 87fd766..4acaa8f 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 */ -- 2.11.0