Fix core build failure with GCC 8

GCC 8 warns when a polymorphic type is caught by value.
This commit is contained in:
Markus Mäkelä
2018-04-17 22:17:34 +03:00
parent c928cf6331
commit 1cc99d2fda

View File

@ -1418,7 +1418,7 @@ bool session_delay_routing(MXS_SESSION* session, MXS_DOWNSTREAM down, GWBUF* buf
success = true; success = true;
} }
catch (std::bad_alloc) catch (std::bad_alloc&)
{ {
MXS_OOM(); MXS_OOM();
} }