Mercurial > hg > xemacs-beta
comparison src/miscplay.c @ 2286:04bc9d2f42c7
[xemacs-hg @ 2004-09-20 19:18:55 by james]
Mark all unused parameters as unused. Also eliminate some unneeded local
variables.
author | james |
---|---|
date | Mon, 20 Sep 2004 19:20:08 +0000 |
parents | 943eaba38521 |
children | ecf1ebac70d8 |
comparison
equal
deleted
inserted
replaced
2285:914c5afaac33 | 2286:04bc9d2f42c7 |
---|---|
27 #include "sound.h" | 27 #include "sound.h" |
28 | 28 |
29 #include "syssignal.h" | 29 #include "syssignal.h" |
30 #include "sysfile.h" | 30 #include "sysfile.h" |
31 | 31 |
32 #ifdef __GNUC__ | |
33 #define UNUSED(x) ((void)(x)) | |
34 #else | |
35 #define UNUSED(x) | |
36 #endif | |
37 | |
38 /* Maintain global variable for keeping parser state information; this struct | 32 /* Maintain global variable for keeping parser state information; this struct |
39 is set to zero before the first invocation of the parser. The use of a | 33 is set to zero before the first invocation of the parser. The use of a |
40 global variable prevents multiple concurrent executions of this code, but | 34 global variable prevents multiple concurrent executions of this code, but |
41 this does not happen anyways... */ | 35 this does not happen anyways... */ |
42 enum wvState | 36 enum wvState |
100 return(rc); | 94 return(rc); |
101 } | 95 } |
102 | 96 |
103 /* Currently we cannot cope with files in VOC format; if you really need | 97 /* Currently we cannot cope with files in VOC format; if you really need |
104 to play these files, they should be converted by using SOX */ | 98 to play these files, they should be converted by using SOX */ |
105 static size_t parsevoc(void **data,size_t *sz,void **outbuf) | 99 static size_t parsevoc(void **UNUSED (data), size_t *UNUSED (sz), |
106 { | 100 void **UNUSED (outbuf)) |
107 UNUSED(data); | 101 { |
108 UNUSED(sz); | |
109 UNUSED(outbuf); | |
110 return(0); | 102 return(0); |
111 } | 103 } |
112 | 104 |
113 /* We need to perform some look-ahead in order to parse files in WAVE format; | 105 /* We need to perform some look-ahead in order to parse files in WAVE format; |
114 this might require re-partioning of the data segments if headers cross the | 106 this might require re-partioning of the data segments if headers cross the |