[MPlayer-cvslog] r33705 - trunk/stream/cache2.c
diego
subversion at mplayerhq.hu
Wed Jun 22 15:48:25 CEST 2011
Author: diego
Date: Wed Jun 22 15:48:25 2011
New Revision: 33705
Log:
cache2: Surround conditionally used functions by appropriate #ifdefs.
This avoids 'defined but not used' warnings without FORKED_CACHE set.
Modified:
trunk/stream/cache2.c
Modified: trunk/stream/cache2.c
==============================================================================
--- trunk/stream/cache2.c Wed Jun 22 15:10:23 2011 (r33704)
+++ trunk/stream/cache2.c Wed Jun 22 15:48:25 2011 (r33705)
@@ -368,6 +368,7 @@ void cache_uninit(stream_t *s) {
s->cache_data = NULL;
}
+#if FORKED_CACHE
static void exit_sighandler(int x){
// close stream
exit(0);
@@ -375,6 +376,7 @@ static void exit_sighandler(int x){
static void dummy_sighandler(int x) {
}
+#endif
/**
* Main loop of the cache process or thread.
More information about the MPlayer-cvslog
mailing list