From f8f9b2834620ee4085126b9edd5f23310fc99fa4 Mon Sep 17 00:00:00 2001 From: Hanspeter Portner Date: Tue, 25 Apr 2023 15:58:37 +0200 Subject: [PATCH] Fix more compiler warnings --- meson.build | 6 +----- src/eteroj_cloak.c | 1 + src/eteroj_ninja.c | 14 ++++---------- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/meson.build b/meson.build index 800f336..eeb83f2 100644 --- a/meson.build +++ b/meson.build @@ -48,11 +48,7 @@ dsp_srcs = [ ] c_args = [ - '-fvisibility=hidden', - '-ffast-math', - '-Wno-unused-variable', - '-Wno-unused-function', - '-Wno-misleading-indentation' + '-fvisibility=hidden' ] version = get_option('version').split('.') diff --git a/src/eteroj_cloak.c b/src/eteroj_cloak.c index f3bfcf2..88f2391 100644 --- a/src/eteroj_cloak.c +++ b/src/eteroj_cloak.c @@ -189,6 +189,7 @@ run(LV2_Handle instance, uint32_t nsamples UNUSED) lv2_osc_writer_packet(&writer, &handle->osc_urid, handle->unmap, obj->atom.size, &obj->body); size_t size; uint8_t *ptr = lv2_osc_writer_finalize(&writer, &size); + (void)ptr; if(size) { diff --git a/src/eteroj_ninja.c b/src/eteroj_ninja.c index 6e3896b..b65f9d6 100644 --- a/src/eteroj_ninja.c +++ b/src/eteroj_ninja.c @@ -368,19 +368,13 @@ cleanup(LV2_Handle instance) // non-rt thread static LV2_Worker_Status _work(LV2_Handle instance, - LV2_Worker_Respond_Function respond, - LV2_Worker_Respond_Handle target, - uint32_t size, - const void *body) + LV2_Worker_Respond_Function respond UNUSED, + LV2_Worker_Respond_Handle target UNUSED, + uint32_t size UNUSED, + const void *body UNUSED) { plughandle_t *handle = instance; LV2_Atom_Forge forge = handle->forge; // clone forge - LV2_OSC_URID *osc_urid = &handle->osc_urid; - - (void)respond; - (void)target; - (void)size; - (void)body; size_t _size; const LV2_Atom_Sequence *seq; -- 2.38.5