From 1a53fafc6b7edace9ab622d68028e934cfe1f8fd Mon Sep 17 00:00:00 2001 From: Tobias 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 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 */ -- 2.47.2