Update of /cvsroot/xine/xine-lib/src/combined
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv23290/src/combined

Modified Files:
        decoder_wavpack.c demux_wavpack.c 
Log Message:
Instead of replicating it over and over, define __unused in attributes.h so 
that it can be used whenever necessary.

Index: decoder_wavpack.c
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/combined/decoder_wavpack.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- decoder_wavpack.c   26 Jan 2007 18:23:06 -0000      1.7
+++ decoder_wavpack.c   25 Feb 2007 17:34:48 -0000      1.8
@@ -26,6 +26,7 @@
 #define LOG_VERBOSE
 
 #include "xine_internal.h"
+#include "attributes.h"
 
 #include <wavpack/wavpack.h>
 #include "combined_wavpack.h"
@@ -50,14 +51,6 @@
   size_t            buf_pos;
 } wavpack_decoder_t;
 
-#ifndef __unused
-# ifdef SUPPORT_ATTRIBUTE_UNUSED
-#  define __unused __attribute__((unused))
-# else
-#  define __unused
-# endif
-#endif
-
 /* Wrapper functions for Wavpack */
 static int32_t xine_buffer_read_bytes(void *const this_gen, void *const data,
                                      int32_t bcount) {

Index: demux_wavpack.c
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/combined/demux_wavpack.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- demux_wavpack.c     24 Jan 2007 22:05:09 -0000      1.7
+++ demux_wavpack.c     25 Feb 2007 17:34:48 -0000      1.8
@@ -29,6 +29,7 @@
 #include "xineutils.h"
 #include "demux.h"
 #include "bswap.h"
+#include "attributes.h"
 
 #include <wavpack/wavpack.h>
 
@@ -53,14 +54,6 @@
   demux_class_t demux_class;
 } demux_wv_class_t;
 
-#ifndef __unused
-# ifdef SUPPORT_ATTRIBUTE_UNUSED
-#  define __unused __attribute__((unused))
-# else
-#  define __unused
-# endif
-#endif
-
 static int32_t xine_input_read_bytes(void *const this_gen, void *const data,
                                     const int32_t bcount) {
   input_plugin_t *const this = (input_plugin_t*)this_gen;


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xine-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-cvslog

Reply via email to