From b55a77a3bf7dd3042719007b23c4cece7374b2e8 Mon Sep 17 00:00:00 2001 From: Jan Blumenkamp Date: Fri, 8 Mar 2019 11:19:13 +0100 Subject: [PATCH 1/2] Fix error: type qualifiers ignored on cast result type --- 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 055438e9..d7a34e43 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 5de4981a3c2eb065ff8f865f404a9f0dba90112d Mon Sep 17 00:00:00 2001 From: Jan Blumenkamp Date: Fri, 8 Mar 2019 11:23:10 +0100 Subject: [PATCH 2/2] =?UTF-8?q?Fix=20error:=20catching=20polymorphic=20typ?= =?UTF-8?q?e=20=E2=80=98class=20cl::Error=E2=80=99=20by=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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..0ec8269b 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