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