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 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)) { }