silenced some clang warnings

master
Denis Ahrens 11 years ago
parent 731ff55b65
commit 93ce452158

@ -100,7 +100,7 @@ int clean_single_torrent( ot_torrent *torrent ) {
/* Clean up all peers in current bucket, remove timedout pools and
torrents */
static void * clean_worker( void * args ) {
args=args;
(void) args;
while( 1 ) {
int bucket = OT_BUCKET_COUNT;
while( bucket-- ) {
@ -134,4 +134,4 @@ void clean_deinit( void ) {
pthread_cancel( thread_id );
}
const char *g_version_clean_c = "$Source: /home/cvsroot/opentracker/ot_clean.c,v $: $Revision: 1.19 $\n";
const char *g_version_clean_c = "$Source: /home/cvsroot/opentracker/ot_clean.c,v $: $Revision: 1.20 $\n";

@ -57,7 +57,7 @@ static void * fullscrape_worker( void * args ) {
int iovec_entries;
struct iovec *iovector;
args = args;
(void) args;
while( 1 ) {
ot_tasktype tasktype = TASK_FULLSCRAPE;
@ -238,4 +238,4 @@ static void fullscrape_make( int *iovec_entries, struct iovec **iovector, ot_tas
}
#endif
const char *g_version_fullscrape_c = "$Source: /home/cvsroot/opentracker/ot_fullscrape.c,v $: $Revision: 1.33 $\n";
const char *g_version_fullscrape_c = "$Source: /home/cvsroot/opentracker/ot_fullscrape.c,v $: $Revision: 1.34 $\n";

@ -566,7 +566,7 @@ size_t stats_return_tracker_version( char *reply ) {
}
size_t return_stats_for_tracker( char *reply, int mode, int format ) {
format = format;
(void) format;
switch( mode & TASK_TASK_MASK ) {
case TASK_STATS_CONNS:
return stats_connections_mrtg( reply );
@ -725,7 +725,7 @@ static void * stats_worker( void * args ) {
int iovec_entries;
struct iovec *iovector;
args = args;
(void) args;
while( 1 ) {
ot_tasktype tasktype = TASK_STATS;
@ -751,4 +751,4 @@ void stats_deinit( ) {
pthread_cancel( thread_id );
}
const char *g_version_stats_c = "$Source: /home/cvsroot/opentracker/ot_stats.c,v $: $Revision: 1.64 $\n";
const char *g_version_stats_c = "$Source: /home/cvsroot/opentracker/ot_stats.c,v $: $Revision: 1.65 $\n";

Loading…
Cancel
Save