# HG changeset patch # User diego # Date 1308750505 0 # Node ID c77bf171b354a9147ce7bc7d866233cf183c9722 # Parent 4221981ad74cc4736c1e45427d201139f03dcd09 cache2: Surround conditionally used functions by appropriate #ifdefs. This avoids 'defined but not used' warnings without FORKED_CACHE set. diff -r 4221981ad74c -r c77bf171b354 stream/cache2.c --- 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.