From 1cc99d2fda02969712aecfd66fef6e18e1aba555 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 17 Apr 2018 22:17:34 +0300 Subject: [PATCH] Fix core build failure with GCC 8 GCC 8 warns when a polymorphic type is caught by value. --- server/core/session.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/session.cc b/server/core/session.cc index 7a888e0d8..012fb3d85 100644 --- a/server/core/session.cc +++ b/server/core/session.cc @@ -1418,7 +1418,7 @@ bool session_delay_routing(MXS_SESSION* session, MXS_DOWNSTREAM down, GWBUF* buf success = true; } - catch (std::bad_alloc) + catch (std::bad_alloc&) { MXS_OOM(); }