[Swfed-svn] swfed-svn [30] 関数の引数で未使用の物を (void) で指定 ( warning 対策 )

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 8月 10日 (日) 01:54:18 JST


Revision: 30
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=swfed&view=rev&rev=30
Author:   yoya
Date:     2008-08-10 01:54:18 +0900 (Sun, 10 Aug 2008)

Log Message:
-----------
関数の引数で未使用の物を (void) で指定 (warning 対策)

Modified Paths:
--------------
    src/swf_tag_sound.c


-------------- next part --------------
Modified: src/swf_tag_sound.c
===================================================================
--- src/swf_tag_sound.c	2008-08-09 16:53:29 UTC (rev 29)
+++ src/swf_tag_sound.c	2008-08-09 16:54:18 UTC (rev 30)
@@ -31,6 +31,7 @@
     unsigned long sound_data_len;
     unsigned char *sound_data;
     (void) tag;
+    (void) swf;
     swf_tag_sound = calloc(sizeof(*swf_tag_sound), 1);
     if (swf_tag_sound == NULL) {
         fprintf(stderr, "ERROR: swf_tag_sound_create_detail: can't calloc\n");
@@ -88,6 +89,7 @@
     bitstream_t *bs;
     unsigned char *data;
     (void) tag;
+    (void) swf;
     *length = 0;
     bs = bitstream_open();
     bitstream_putbytesLE(bs, swf_tag_sound->sound_id, 2);
@@ -110,6 +112,7 @@
     swf_tag_sound_detail_t *swf_tag_sound = (swf_tag_sound_detail_t *) detail;
     char *format_name = "Unknown";
     (void) tag;
+    (void) swf;
     switch(swf_tag_sound->sound_format) {
     case 0:
         format_name = "Raw";
@@ -152,13 +155,19 @@
 
 char *
 swf_tag_sound_get_data(void *detail, int sound_id) {
+    (void) detail;
+    (void) sound_id;
     // dummy
     return NULL;
 }
 int
 swf_tag_sound_replace_data(void *detail, int sound_id,
-                                      unsigned char *data,
+                           unsigned char *data,
                            unsigned long data_len) {
+    (void) detail;
+    (void) sound_id;
+    (void) data;
+    (void) data_len;
         // dummy
     return -1;
 }


Swfed-svn メーリングリストの案内
Back to archive index