[polypaudio-commits] r754 - in /trunk/src: modules/ modules/rtp/ polyp/ polypcore/ utils/

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Tue Apr 18 12:31:51 PDT 2006


Author: lennart
Date: Tue Apr 18 21:31:50 2006
New Revision: 754

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=754&root=polypaudio&view=rev
Log:
fix a couple of issues I found when compiling polypaudio with gcc 2.95

Modified:
    trunk/src/modules/alsa-util.c
    trunk/src/modules/module-detect.c
    trunk/src/modules/module-jack-sink.c
    trunk/src/modules/module-oss.c
    trunk/src/modules/module-tunnel.c
    trunk/src/modules/rtp/module-rtp-recv.c
    trunk/src/polyp/browser.c
    trunk/src/polyp/context.c
    trunk/src/polyp/def.h
    trunk/src/polyp/stream.c
    trunk/src/polypcore/socket-client.c
    trunk/src/polypcore/source.c
    trunk/src/utils/pacmd.c

Modified: trunk/src/modules/alsa-util.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/alsa-util.c?rev=754&root=polypaudio&r1=753&r2=754&view=diff
==============================================================================
--- trunk/src/modules/alsa-util.c (original)
+++ trunk/src/modules/alsa-util.c Tue Apr 18 21:31:50 2006
@@ -51,7 +51,7 @@
     void *userdata;
 };
 
-static void io_cb(pa_mainloop_api*a, pa_io_event* e, int fd, pa_io_event_flags_t events, void *userdata) {
+static void io_cb(pa_mainloop_api*a, pa_io_event* e, PA_GCC_UNUSED int fd, pa_io_event_flags_t events, void *userdata) {
     struct pa_alsa_fdlist *fdl = (struct pa_alsa_fdlist*)userdata;
     int err, i;
     unsigned short revents;
@@ -102,7 +102,7 @@
     a->defer_enable(fdl->defer, 1);
 }
 
-static void defer_cb(pa_mainloop_api*a, pa_defer_event* e, void *userdata) {
+static void defer_cb(pa_mainloop_api*a, PA_GCC_UNUSED pa_defer_event* e, void *userdata) {
     struct pa_alsa_fdlist *fdl = (struct pa_alsa_fdlist*)userdata;
     int num_fds, i, err;
     struct pollfd *temp;

Modified: trunk/src/modules/module-detect.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-detect.c?rev=754&root=polypaudio&r1=753&r2=754&view=diff
==============================================================================
--- trunk/src/modules/module-detect.c (original)
+++ trunk/src/modules/module-detect.c Tue Apr 18 21:31:50 2006
@@ -259,7 +259,7 @@
 }
 
 
-void pa__done(pa_core *c, pa_module*m) {
+void pa__done(PA_GCC_UNUSED pa_core *c, PA_GCC_UNUSED pa_module*m) {
     /* NOP */
 }
 

Modified: trunk/src/modules/module-jack-sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-jack-sink.c?rev=754&root=polypaudio&r1=753&r2=754&view=diff
==============================================================================
--- trunk/src/modules/module-jack-sink.c (original)
+++ trunk/src/modules/module-jack-sink.c Tue Apr 18 21:31:50 2006
@@ -112,6 +112,7 @@
     char x;
     
     assert(m);
+    assert(e);
     assert(flags == PA_IO_EVENT_INPUT);
     assert(u);
     assert(u->pipe_fds[0] == fd);

Modified: trunk/src/modules/module-oss.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-oss.c?rev=754&root=polypaudio&r1=753&r2=754&view=diff
==============================================================================
--- trunk/src/modules/module-oss.c (original)
+++ trunk/src/modules/module-oss.c Tue Apr 18 21:31:50 2006
@@ -461,8 +461,9 @@
      * Without this snippet, poll will never register the fd as ready.
      */
     if (u->source) {
-        char buf[u->sample_size];
+        char *buf = pa_xnew(char, u->sample_size);
         read(u->fd, buf, u->sample_size);
+        pa_xfree(buf);
     }
 
     /* Read mixer settings */

Modified: trunk/src/modules/module-tunnel.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-tunnel.c?rev=754&root=polypaudio&r1=753&r2=754&view=diff
==============================================================================
--- trunk/src/modules/module-tunnel.c (original)
+++ trunk/src/modules/module-tunnel.c Tue Apr 18 21:31:50 2006
@@ -603,7 +603,7 @@
 }
 
 #ifndef TUNNEL_SINK
-static void pstream_memblock_callback(pa_pstream *p, uint32_t channel, int64_t offset, pa_seek_mode_t seek, const pa_memchunk *chunk, void *userdata) {
+static void pstream_memblock_callback(pa_pstream *p, uint32_t channel, PA_GCC_UNUSED int64_t offset, PA_GCC_UNUSED pa_seek_mode_t seek, const pa_memchunk *chunk, void *userdata) {
     struct userdata *u = userdata;
     assert(p && chunk && u);
 

Modified: trunk/src/modules/rtp/module-rtp-recv.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/rtp/module-rtp-recv.c?rev=754&root=polypaudio&r1=753&r2=754&view=diff
==============================================================================
--- trunk/src/modules/rtp/module-rtp-recv.c (original)
+++ trunk/src/modules/rtp/module-rtp-recv.c Tue Apr 18 21:31:50 2006
@@ -477,7 +477,7 @@
     return -1;
 }
 
-static void free_func(void *p, void *userdata) {
+static void free_func(void *p, PA_GCC_UNUSED void *userdata) {
     session_free(p, 0);
 }
 

Modified: trunk/src/polyp/browser.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/browser.c?rev=754&root=polypaudio&r1=753&r2=754&view=diff
==============================================================================
--- trunk/src/polyp/browser.c (original)
+++ trunk/src/polyp/browser.c Tue Apr 18 21:31:50 2006
@@ -43,7 +43,7 @@
     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);
 

Modified: trunk/src/polyp/context.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/context.c?rev=754&root=polypaudio&r1=753&r2=754&view=diff
==============================================================================
--- trunk/src/polyp/context.c (original)
+++ trunk/src/polyp/context.c Tue Apr 18 21:31:50 2006
@@ -955,7 +955,7 @@
     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;
 }
 

Modified: trunk/src/polyp/def.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/def.h?rev=754&root=polypaudio&r1=753&r2=754&view=diff
==============================================================================
--- trunk/src/polyp/def.h (original)
+++ trunk/src/polyp/def.h Tue Apr 18 21:31:50 2006
@@ -288,7 +288,7 @@
     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  */

Modified: trunk/src/polyp/stream.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/stream.c?rev=754&root=polypaudio&r1=753&r2=754&view=diff
==============================================================================
--- trunk/src/polyp/stream.c (original)
+++ trunk/src/polyp/stream.c Tue Apr 18 21:31:50 2006
@@ -360,7 +360,7 @@
     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");    */

Modified: trunk/src/polypcore/socket-client.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/socket-client.c?rev=754&root=polypaudio&r1=753&r2=754&view=diff
==============================================================================
--- trunk/src/polypcore/socket-client.c (original)
+++ trunk/src/polypcore/socket-client.c Tue Apr 18 21:31:50 2006
@@ -371,7 +371,7 @@
     goto finish;
 
 fail:
-    errno == EHOSTUNREACH;
+    errno = EHOSTUNREACH;
     do_call(c);
     
 finish:

Modified: trunk/src/polypcore/source.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/source.c?rev=754&root=polypaudio&r1=753&r2=754&view=diff
==============================================================================
--- trunk/src/polypcore/source.c (original)
+++ trunk/src/polypcore/source.c Tue Apr 18 21:31:50 2006
@@ -170,7 +170,7 @@
         s->notify(s);
 }
 
-static int do_post(void *p, PA_GCC_UNUSED uint32_t idx, int *del, void*userdata) {
+static int do_post(void *p, PA_GCC_UNUSED uint32_t idx, PA_GCC_UNUSED int *del, void*userdata) {
     pa_source_output *o = p;
     const pa_memchunk *chunk = userdata;
     

Modified: trunk/src/utils/pacmd.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/utils/pacmd.c?rev=754&root=polypaudio&r1=753&r2=754&view=diff
==============================================================================
--- trunk/src/utils/pacmd.c (original)
+++ trunk/src/utils/pacmd.c Tue Apr 18 21:31:50 2006
@@ -36,7 +36,7 @@
 #include <polypcore/log.h>
 #include <polypcore/pid.h>
 
-int main(PA_GCC_UNUSED int main, PA_GCC_UNUSED char*argv[]) {
+int main(PA_GCC_UNUSED int argc, PA_GCC_UNUSED char*argv[]) {
     pid_t pid ;
     int fd = -1;
     int ret = 1, i;




More information about the pulseaudio-commits mailing list