From 675372b647a6f32884817dfc834e33e4f81e2667 Mon Sep 17 00:00:00 2001 From: Ciprian Alexandru Pitis Date: Thu, 18 Jul 2019 14:46:32 +0200 Subject: [PATCH 1/2] Remove const off a pointer --- src/include/generic_layer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/generic_layer.hpp b/src/include/generic_layer.hpp index f9478fd1..7986a9eb 100644 --- a/src/include/generic_layer.hpp +++ b/src/include/generic_layer.hpp @@ -61,7 +61,7 @@ struct generic_layer : public primitive_baseoutput_layout) - , generic_params(*static_cast(dto->generic_params)) + , generic_params(*static_cast(dto->generic_params)) { } From 073424952b55bea944a3bff83a2b760fd658eb59 Mon Sep 17 00:00:00 2001 From: Ciprian Alexandru Pitis Date: Wed, 24 Jul 2019 12:26:14 +0200 Subject: [PATCH 2/2] Catch error by reference --- common/khronos_ocl_clhpp/cl2.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/khronos_ocl_clhpp/cl2.hpp b/common/khronos_ocl_clhpp/cl2.hpp index faec1536..84331250 100644 --- a/common/khronos_ocl_clhpp/cl2.hpp +++ b/common/khronos_ocl_clhpp/cl2.hpp @@ -2700,7 +2700,7 @@ class Context error = platforms[i].getDevices(type, &devices); #if defined(CL_HPP_ENABLE_EXCEPTIONS) - } catch (Error) {} + } catch (Error&) {} // Catch if exceptions are enabled as we don't want to exit if first platform has no devices of type // We do error checking next anyway, and can throw there if needed #endif