[xiph-commits] r19090 - trunk/vorbis-tools/ogg123

giles at svn.xiph.org giles at svn.xiph.org
Fri Feb 14 13:14:10 PST 2014


Author: giles
Date: 2014-02-14 13:14:10 -0800 (Fri, 14 Feb 2014)
New Revision: 19090

Modified:
   trunk/vorbis-tools/ogg123/audio.c
   trunk/vorbis-tools/ogg123/buffer.c
Log:
ogg123: remove two unused variable warnings.


Modified: trunk/vorbis-tools/ogg123/audio.c
===================================================================
--- trunk/vorbis-tools/ogg123/audio.c	2014-02-14 21:09:51 UTC (rev 19089)
+++ trunk/vorbis-tools/ogg123/audio.c	2014-02-14 21:14:10 UTC (rev 19090)
@@ -42,15 +42,13 @@
 				     int driver_id,
 				     ao_option *options, char *filename)
 {
-  audio_device_t *head = devices_list;
-
   if (devices_list != NULL) {
     while (devices_list->next_device != NULL)
       devices_list = devices_list->next_device;
     devices_list = devices_list->next_device =
       malloc(sizeof(audio_device_t));
   } else {
-    head = devices_list = (audio_device_t *) malloc(sizeof(audio_device_t));
+    devices_list = (audio_device_t *) malloc(sizeof(audio_device_t));
   }
   devices_list->driver_id = driver_id;
   devices_list->options = options;

Modified: trunk/vorbis-tools/ogg123/buffer.c
===================================================================
--- trunk/vorbis-tools/ogg123/buffer.c	2014-02-14 21:09:51 UTC (rev 19089)
+++ trunk/vorbis-tools/ogg123/buffer.c	2014-02-14 21:14:10 UTC (rev 19090)
@@ -94,6 +94,7 @@
 void buffer_thread_cleanup (void *arg)
 {
   buf_t *buf = (buf_t *)arg;
+  (void)buf;
 
   DEBUG("Enter buffer_thread_cleanup");
 }



More information about the commits mailing list