changeset 33617:c77bf171b354

cache2: Surround conditionally used functions by appropriate #ifdefs. This avoids 'defined but not used' warnings without FORKED_CACHE set.
author diego
date Wed, 22 Jun 2011 13:48:25 +0000
parents 4221981ad74c
children bdfb1aeb4b41
files stream/cache2.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/cache2.c	Wed Jun 22 13:10:23 2011 +0000
+++ b/stream/cache2.c	Wed Jun 22 13:48:25 2011 +0000
@@ -368,6 +368,7 @@
   s->cache_data = NULL;
 }
 
+#if FORKED_CACHE
 static void exit_sighandler(int x){
   // close stream
   exit(0);
@@ -375,6 +376,7 @@
 
 static void dummy_sighandler(int x) {
 }
+#endif
 
 /**
  * Main loop of the cache process or thread.