From: Andre Date: Sun, 28 May 2006 22:05:16 +0000 (+0200) Subject: Minor random fixes. X-Git-Tag: v0.2.14~101^2~6 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=af2518cf1943cb1b6b4b4a32ca687e8f416ed563 Minor random fixes. gcc is happy now. --- diff --git a/aac_afh.c b/aac_afh.c index fdb37a7e..e6f99b4f 100644 --- a/aac_afh.c +++ b/aac_afh.c @@ -192,12 +192,11 @@ static int aac_get_file_info(FILE *file, char *info_str, long unsigned *frames, } /* - * Simple stream reposition routine + * nothing to do as we'll seek to the correct offset in aac read_chunk() anyway */ -static int aac_reposition_stream(long unsigned request) +static int aac_reposition_stream(__a_unused long unsigned request) { return 1; -// return -E_AAC_REPOS; } static char *aac_read_chunk(long unsigned current_chunk, ssize_t *len) diff --git a/audiod.c b/audiod.c index 99d8ab1a..d7884133 100644 --- a/audiod.c +++ b/audiod.c @@ -1566,7 +1566,7 @@ static void status_post_select(struct sched *s, struct task *t) if (ret <= 0) { close_stat_pipe(); /* avoid busy loop if server is down */ - while (sleep(1) > 0) + while (sleep(1) > 0) /* FIXME */ ; /* try again*/ } else { st->buf[ret + st->loaded] = '\0'; diff --git a/filter.c b/filter.c index ee7e6dbc..56afebf3 100644 --- a/filter.c +++ b/filter.c @@ -30,8 +30,6 @@ INIT_FILTER_ERRLISTS; -#define INBUF_SIZE 32 * 1024 - static struct stdin_task stdin_task_struct; static struct stdin_task *sit = &stdin_task_struct; static struct filter_chain filter_chain_struct; diff --git a/server.c b/server.c index 1805c92b..2391e07c 100644 --- a/server.c +++ b/server.c @@ -33,7 +33,6 @@ #include "db.h" #include "server.h" #include "afs.h" -#include "afh.h" /* FIXME */ #include "config.h" #include "close_on_fork.h" #include "send.h" diff --git a/write.c b/write.c index 2efe07ce..e4206203 100644 --- a/write.c +++ b/write.c @@ -57,7 +57,7 @@ static struct writer_node_group *wng; * \return If not, return -E_NO_WAV_HEADER, otherwise, return zero. If * there is less than WAV_HEADER_LEN bytes awailable, return one. */ -static void check_wav_pre_select(struct sched *s, struct task *t) +static void check_wav_pre_select(__a_unused struct sched *s, struct task *t) { struct check_wav_task *cwt = t->private_data; unsigned char *a;