From 746adcfed5dc396bc4820724b2e951369fc63aeb Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 18 Apr 2006 19:31:50 +0000 Subject: fix a couple of issues I found when compiling polypaudio with gcc 2.95 git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@754 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/polyp/browser.c | 2 +- src/polyp/context.c | 2 +- src/polyp/def.h | 2 +- src/polyp/stream.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/polyp') diff --git a/src/polyp/browser.c b/src/polyp/browser.c index de5c751a..cef680e4 100644 --- a/src/polyp/browser.c +++ b/src/polyp/browser.c @@ -43,7 +43,7 @@ struct pa_browser { pa_io_event *io_event; }; -static void io_callback(pa_mainloop_api*a, pa_io_event*e, int fd, pa_io_event_flags_t events, void *userdata) { +static void io_callback(pa_mainloop_api*a, PA_GCC_UNUSED pa_io_event*e, PA_GCC_UNUSED int fd, pa_io_event_flags_t events, void *userdata) { pa_browser *b = userdata; assert(a && b && b->mainloop == a); diff --git a/src/polyp/context.c b/src/polyp/context.c index 047b739f..448e2e68 100644 --- a/src/polyp/context.c +++ b/src/polyp/context.c @@ -955,7 +955,7 @@ const char* pa_context_get_server(pa_context *c) { return c->server; } -uint32_t pa_context_get_protocol_version(pa_context *c) { +uint32_t pa_context_get_protocol_version(PA_GCC_UNUSED pa_context *c) { return PA_PROTOCOL_VERSION; } diff --git a/src/polyp/def.h b/src/polyp/def.h index 80e3092b..517dd422 100644 --- a/src/polyp/def.h +++ b/src/polyp/def.h @@ -288,7 +288,7 @@ typedef enum pa_seek_mode { PA_SEEK_RELATIVE = 0, /**< Seek relatively to the write index */ PA_SEEK_ABSOLUTE = 1, /**< Seek relatively to the start of the buffer queue */ PA_SEEK_RELATIVE_ON_READ = 2, /**< Seek relatively to the read index. */ - PA_SEEK_RELATIVE_END = 3, /**< Seek relatively to the current end of the buffer queue. */ + PA_SEEK_RELATIVE_END = 3 /**< Seek relatively to the current end of the buffer queue. */ } pa_seek_mode_t; /** Special sink flags. \since 0.8 */ diff --git a/src/polyp/stream.c b/src/polyp/stream.c index ce2470f6..e400415c 100644 --- a/src/polyp/stream.c +++ b/src/polyp/stream.c @@ -360,7 +360,7 @@ static void invalidate_indexes(pa_stream *s, int r, int w) { request_auto_timing_update(s, 1); } -static void auto_timing_update_callback(pa_mainloop_api *m, pa_time_event *e, PA_GCC_UNUSED const struct timeval *tv, void *userdata) { +static void auto_timing_update_callback(PA_GCC_UNUSED pa_mainloop_api *m, PA_GCC_UNUSED pa_time_event *e, PA_GCC_UNUSED const struct timeval *tv, void *userdata) { pa_stream *s = userdata; /* pa_log("time event"); */ -- cgit