chimera: silence gcc-8 exception catch warning

This commit is contained in:
Wang, Xiang W 2018-12-02 22:31:44 -05:00 committed by Chang, Harry
parent acffc9d36c
commit c7c4119750

View File

@ -714,7 +714,7 @@ ch_error_t HS_CDECL ch_compile(const char *expression, unsigned flags,
(int)e.index : -1);
return CH_COMPILER_ERROR;
}
catch (std::bad_alloc) {
catch (std::bad_alloc &) {
*db = nullptr;
*comp_error = const_cast<ch_compile_error_t *>(&ch_enomem);
return CH_COMPILER_ERROR;
@ -782,7 +782,7 @@ ch_error_t HS_CDECL ch_compile_multi(const char *const *expressions,
(int)e.index : -1);
return CH_COMPILER_ERROR;
}
catch (std::bad_alloc) {
catch (std::bad_alloc &) {
*db = nullptr;
*comp_error = const_cast<ch_compile_error_t *>(&ch_enomem);
return CH_COMPILER_ERROR;
@ -855,7 +855,7 @@ ch_error_t HS_CDECL ch_compile_ext_multi(
(int)e.index : -1);
return CH_COMPILER_ERROR;
}
catch (std::bad_alloc) {
catch (std::bad_alloc &) {
*db = nullptr;
*comp_error = const_cast<ch_compile_error_t *>(&ch_enomem);
return CH_COMPILER_ERROR;