1 From 243b7ffee16558d7cb9b411f49380138efeffca9 Mon Sep 17 00:00:00 2001
2 From: Stephane Desneux <stephane.desneux@iot.bzh>
3 Date: Fri, 1 Feb 2019 12:26:17 +0000
4 Subject: [PATCH 11/14] Fix gcc8 warning/error [-Werror=catch-value=]
6 Fixes the following warning/error during compile:
8 src/dpl/core/src/assert.cpp:61:14: error: catching polymorphic type 'class SecurityManager::Exception' by value [-Werror=catch-value=]
9 | } catch (Exception) {
12 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
14 src/dpl/core/src/assert.cpp | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
17 diff --git a/src/dpl/core/src/assert.cpp b/src/dpl/core/src/assert.cpp
18 index 63538a2..fc60ce9 100644
19 --- a/src/dpl/core/src/assert.cpp
20 +++ b/src/dpl/core/src/assert.cpp
21 @@ -58,7 +58,7 @@ void AssertProc(const char *condition,
22 INTERNAL_LOG("### Function: " << function);
24 "################################################################################");
25 - } catch (Exception) {
26 + } catch (Exception const&) {
27 // Just ignore possible double errors