From 49cf84578e630db55cd6cb368cc29ecc6df5f50e Mon Sep 17 00:00:00 2001 From: Sean Bright <sean.bright@gmail.com> Date: Fri, 13 Mar 2020 14:43:05 -0400 Subject: [PATCH] chan_vpb: Fix 'catching polymorphic type ... by value' error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes the following compile error: chan_vpb.cc:2688:26: error: catching polymorphic type ‘class std::exception’ by value Change-Id: Ic87bc357d72427d77626735c83200fd278a7a649 --- channels/chan_vpb.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_vpb.cc b/channels/chan_vpb.cc index e8cd961013..fe99d5df0b 100644 --- a/channels/chan_vpb.cc +++ b/channels/chan_vpb.cc @@ -2691,7 +2691,7 @@ static enum ast_module_load_result load_module() ast_format_cap_append(vpb_tech_indicate.capabilities, ast_format_slin, 0); try { num_cards = vpb_get_num_cards(); - } catch (std::exception e) { + } catch (std::exception&) { ast_log(LOG_ERROR, "No Voicetronix cards detected\n"); return AST_MODULE_LOAD_DECLINE; } -- GitLab