aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-04-06 15:00:56 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2019-04-06 15:00:56 +0200
commitefb8123e89614c6c3739027306cac2fdc473681b (patch)
tree2572185c04af5d22de5fe653bcd8bc4bb74b16a2
parent71cf12eb45eaa565d4c27bcc34accd90bf23d8f3 (diff)
downloadmonitors.lv2-efb8123e89614c6c3739027306cac2fdc473681b.tar.xz
fix pedantic compile time warnings.
-rw-r--r--VERSION2
-rw-r--r--meson.build10
-rw-r--r--monitors_audio_wave.c6
-rw-r--r--monitors_midi_pianoroll.c12
-rw-r--r--monitors_time_metronom.c10
5 files changed, 25 insertions, 15 deletions
diff --git a/VERSION b/VERSION
index 25bc676..5c5c55e 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.221
+0.1.233
diff --git a/meson.build b/meson.build
index 01bd3ad..27b3d90 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,6 @@
project('monitors.lv2', 'c', default_options : [
'buildtype=release',
- 'warning_level=1',
+ 'warning_level=3',
'werror=false',
'b_lto=false',
'c_std=c11'])
@@ -67,10 +67,10 @@ dsp_ttl = custom_target('monitors_ttl',
install : true,
install_dir : inst_dir)
-#if lv2_validate.found()
-# test('LV2 validate', lv2_validate,
-# args : [manifest_ttl, dsp_ttl])
-#endif
+if lv2_validate.found()
+ test('LV2 validate', lv2_validate,
+ args : [manifest_ttl, dsp_ttl])
+endif
if lv2lint.found()
test('LV2 lint', lv2lint,
diff --git a/monitors_audio_wave.c b/monitors_audio_wave.c
index 07dd86e..ae456cd 100644
--- a/monitors_audio_wave.c
+++ b/monitors_audio_wave.c
@@ -249,7 +249,8 @@ _render(plughandle_t *handle)
}
static void
-_intercept_window(void *data, int64_t frames, props_impl_t *impl)
+_intercept_window(void *data, int64_t frames __attribute__((unused)),
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -298,7 +299,8 @@ static const props_def_t defs [MAX_NPROPS] = {
static LV2_Handle
instantiate(const LV2_Descriptor* descriptor, double rate,
- const char *bundle_path, const LV2_Feature *const *features)
+ const char *bundle_path __attribute__((unused)),
+ const LV2_Feature *const *features)
{
plughandle_t *handle = calloc(1, sizeof(plughandle_t));
if(!handle)
diff --git a/monitors_midi_pianoroll.c b/monitors_midi_pianoroll.c
index 5fc8662..f1b225d 100644
--- a/monitors_midi_pianoroll.c
+++ b/monitors_midi_pianoroll.c
@@ -264,7 +264,8 @@ _render(plughandle_t *handle, int64_t frames)
}
static void
-_intercept_window(void *data, int64_t frames, props_impl_t *impl)
+_intercept_window(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -276,7 +277,8 @@ _intercept_window(void *data, int64_t frames, props_impl_t *impl)
}
static void
-_intercept_channel(void *data, int64_t frames, props_impl_t *impl)
+_intercept_channel(void *data, int64_t frames,
+ props_impl_t *impl __attribute__((unused)))
{
plughandle_t *handle = data;
@@ -368,7 +370,8 @@ _fill_palette(uint32_t *palette)
static LV2_Handle
instantiate(const LV2_Descriptor* descriptor, double rate,
- const char *bundle_path, const LV2_Feature *const *features)
+ const char *bundle_path __attribute__((unused)),
+ const LV2_Feature *const *features)
{
plughandle_t *handle = calloc(1, sizeof(plughandle_t));
if(!handle)
@@ -497,7 +500,8 @@ _note_on(plughandle_t *handle, int64_t frames, uint8_t key, uint8_t vel)
}
static inline void
-_handle_midi(plughandle_t *handle, int64_t frames, uint32_t size, const uint8_t *msg)
+_handle_midi(plughandle_t *handle, int64_t frames,
+ uint32_t size __attribute__((unused)), const uint8_t *msg)
{
switch(lv2_midi_message_type(msg))
{
diff --git a/monitors_time_metronom.c b/monitors_time_metronom.c
index 54fc970..cb79d55 100644
--- a/monitors_time_metronom.c
+++ b/monitors_time_metronom.c
@@ -78,7 +78,7 @@ _out_of_memory(plughandle_t *handle)
}
static void
-_render(plughandle_t *handle, int64_t frames)
+_render(plughandle_t *handle, int64_t frames __attribute__((unused)))
{
LV2_Atom_Forge _forge = handle->notify.forge; // clone forge object
LV2_Atom_Forge *forge = &_forge;
@@ -186,14 +186,18 @@ static const props_def_t defs [MAX_NPROPS] = {
};
static void
-_cb(timely_t *timely, int64_t frames, LV2_URID type, void *data)
+_cb(timely_t *timely __attribute__((unused)),
+ int64_t frames __attribute__((unused)),
+ LV2_URID type __attribute__((unused)),
+ void *data __attribute__((unused)))
{
// do nothing
}
static LV2_Handle
instantiate(const LV2_Descriptor* descriptor, double rate,
- const char *bundle_path, const LV2_Feature *const *features)
+ const char *bundle_path __attribute__((unused)),
+ const LV2_Feature *const *features)
{
plughandle_t *handle = calloc(1, sizeof(plughandle_t));
if(!handle)