From: Paul Brossier Date: Tue, 10 Oct 2006 13:12:19 +0000 (+0000) Subject: remove unused parameter warnings with UNUSED X-Git-Tag: bzr2git~534 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b377d0456ebdd34c775c16fe0a82fe8d6dec0141;p=aubio.git remove unused parameter warnings with UNUSED remove unused parameter warnings with UNUSED --- diff --git a/ext/jackio.c b/ext/jackio.c index 03ee2dfa..2476adc7 100644 --- a/ext/jackio.c +++ b/ext/jackio.c @@ -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); } diff --git a/ext/midi/midi_player.c b/ext/midi/midi_player.c index 94854429..998b59d0 100644 --- a/ext/midi/midi_player.c +++ b/ext/midi/midi_player.c @@ -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; diff --git a/src/filter.c b/src/filter.c index d734fddb..58c6191b 100644 --- a/src/filter.c +++ b/src/filter.c @@ -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; diff --git a/src/onsetdetection.c b/src/onsetdetection.c index 2514c640..4843af4d 100644 --- a/src/onsetdetection.c +++ b/src/onsetdetection.c @@ -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;ichannels;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;ichannels;i++) { onset->data[i][0] = 0.; diff --git a/src/pitchdetection.c b/src/pitchdetection.c index e70b49c1..2a831043 100644 --- a/src/pitchdetection.c +++ b/src/pitchdetection.c @@ -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; }