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
This commit is contained in:
Sean Bright 2020-03-13 14:43:05 -04:00
parent 479723f3cc
commit 2a3b2d5781
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}