remove unused parameter warnings with UNUSED
authorPaul Brossier <piem@altern.org>
Tue, 10 Oct 2006 13:12:19 +0000 (13:12 +0000)
committerPaul Brossier <piem@altern.org>
Tue, 10 Oct 2006 13:12:19 +0000 (13:12 +0000)
remove unused parameter warnings with UNUSED

ext/jackio.c
ext/midi/midi_player.c
src/filter.c
src/onsetdetection.c
src/pitchdetection.c

index 03ee2df..2476adc 100644 (file)
@@ -151,7 +151,7 @@ static uint_t aubio_jack_free(aubio_jack_t * jack_setup) {
 }
 
 /* jack callback functions */
-static void aubio_jack_shutdown (void *arg){
+static void aubio_jack_shutdown (void *arg UNUSED){
   AUBIO_ERR("jack shutdown\n");
   AUBIO_QUIT(AUBIO_OK);
 }
index 9485442..998b59d 100644 (file)
@@ -475,7 +475,7 @@ sint_t aubio_midi_send_event(aubio_midi_player_t* player, aubio_midi_event_t* ev
  *
  * \note This could be moved to a callback function defined in the main programs
  */
-sint_t aubio_midi_receive_event(aubio_midi_player_t* player, aubio_midi_event_t* event)
+sint_t aubio_midi_receive_event(aubio_midi_player_t* player UNUSED, aubio_midi_event_t* event)
 {
   /* current time in seconds */
   //smpl_t print_time = player->msec_passed * 1e-3;
index d734fdd..58c6191 100644 (file)
@@ -191,7 +191,7 @@ aubio_filter_t * new_aubio_cdsgn_filter(uint_t samplerate) {
   return f;
 }
 
-aubio_filter_t * new_aubio_filter(uint_t samplerate, uint_t order) {
+aubio_filter_t * new_aubio_filter(uint_t samplerate UNUSED, uint_t order) {
   aubio_filter_t * f = AUBIO_NEW(aubio_filter_t);
   lsmp_t * x = f->x;
   lsmp_t * y = f->y;
index 2514c64..4843af4 100644 (file)
@@ -42,7 +42,7 @@ struct _aubio_onsetdetection_t {
 
 
 /* Energy based onset detection function */
-void aubio_onsetdetection_energy  (aubio_onsetdetection_t *o,
+void aubio_onsetdetection_energy  (aubio_onsetdetection_t *o UNUSED,
                cvec_t * fftgrain, fvec_t * onset) {
        uint_t i,j;
        for (i=0;i<fftgrain->channels;i++) {
@@ -54,7 +54,8 @@ void aubio_onsetdetection_energy  (aubio_onsetdetection_t *o,
 }
 
 /* High Frequency Content onset detection function */
-void aubio_onsetdetection_hfc(aubio_onsetdetection_t *o,       cvec_t * fftgrain, fvec_t * onset){
+void aubio_onsetdetection_hfc(aubio_onsetdetection_t *o UNUSED,
+    cvec_t * fftgrain, fvec_t * onset){
        uint_t i,j;
        for (i=0;i<fftgrain->channels;i++) {
                onset->data[i][0] = 0.;
index e70b49c..2a83104 100644 (file)
@@ -67,12 +67,12 @@ smpl_t freqconvbin(smpl_t f,uint_t srate,uint_t bufsize){
 }
 
 smpl_t freqconvmidi(smpl_t f,uint_t srate,uint_t bufsize);
-smpl_t freqconvmidi(smpl_t f,uint_t srate,uint_t bufsize){
+smpl_t freqconvmidi(smpl_t f,uint_t srate UNUSED,uint_t bufsize UNUSED){
         return aubio_freqtomidi(f);
 }
 
 smpl_t freqconvpass(smpl_t f,uint_t srate,uint_t bufsize);
-smpl_t freqconvpass(smpl_t f,uint_t srate,uint_t bufsize){
+smpl_t freqconvpass(smpl_t f,uint_t srate UNUSED,uint_t bufsize UNUSED){
         return f;
 }