ref: b377d0456ebdd34c775c16fe0a82fe8d6dec0141
parent: ec399cf3b590f1162bcfdedca3d0b70eeab152d6
author: Paul Brossier <piem@altern.org>
date: Tue Oct 10 09:12:19 EDT 2006
remove unused parameter warnings with UNUSED remove unused parameter warnings with UNUSED
--- a/ext/jackio.c
+++ b/ext/jackio.c
@@ -151,7 +151,7 @@
}
/* 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);
}
--- a/ext/midi/midi_player.c
+++ b/ext/midi/midi_player.c
@@ -475,7 +475,7 @@
*
* \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;
--- a/src/filter.c
+++ b/src/filter.c
@@ -191,7 +191,7 @@
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;
--- a/src/onsetdetection.c
+++ b/src/onsetdetection.c
@@ -42,7 +42,7 @@
/* 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 @@
}
/* 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.;
--- a/src/pitchdetection.c
+++ b/src/pitchdetection.c
@@ -67,12 +67,12 @@
}
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;
}
--
⑨