From: Sean Bright Date: Fri, 13 Mar 2020 18:43:05 +0000 (-0400) Subject: chan_vpb: Fix 'catching polymorphic type ... by value' error X-Git-Tag: 13.33.0-rc1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e4e016a6cdfa50a0cde7a2cf75ad03dc9a2207a;p=thirdparty%2Fasterisk.git chan_vpb: Fix 'catching polymorphic type ... by value' error Fixes the following compile error: chan_vpb.cc:2688:26: error: catching polymorphic type ‘class std::exception’ by value Change-Id: Ic87bc357d72427d77626735c83200fd278a7a649 --- diff --git a/channels/chan_vpb.cc b/channels/chan_vpb.cc index 92d9287b58..e858939ae9 100644 --- a/channels/chan_vpb.cc +++ b/channels/chan_vpb.cc @@ -2685,7 +2685,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; }