From b064b3c1364e0995effd1c5991cd1f2fdfc45ffe Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 28 Feb 2021 20:01:06 +0100 Subject: [PATCH] OSC: fix some compiler warnings --- libs/surfaces/osc/osc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index ae6a08238b..3fa77d350a 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -3628,7 +3628,6 @@ OSC::_strip_parse (const char *path, const char *sub_path, const char* types, lo OSCSurface *sur = get_surface(get_address (msg)); bool send_active = strp && sur->temp_mode == BusOnly && get_send (s, get_address (msg)); bool control_disabled = strp && (sur->temp_mode == BusOnly) && (s != sur->temp_master); - bool n_ma = !s->is_master(); bool n_mo = !s->is_monitor(); boost::shared_ptr rt = boost::dynamic_pointer_cast (s); @@ -3669,6 +3668,8 @@ OSC::_strip_parse (const char *path, const char *sub_path, const char* types, lo } else { abs = dB_to_coefficient (db); } + } else { + abs = 0; } float top = gain_control->upper(); if (abs > top) {