From 7d522eae69c6dda515f1b099abe00d3fa6242d14 Mon Sep 17 00:00:00 2001 From: Ilan Truanovsky Date: Mon, 9 Jan 2023 06:21:06 -0800 Subject: [PATCH] Add explicit assignment operator & copy constructor Necessary to fix a coverity issue --- include/acl_device_binary.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/acl_device_binary.h b/include/acl_device_binary.h index bf3ff888..73a94432 100644 --- a/include/acl_device_binary.h +++ b/include/acl_device_binary.h @@ -26,6 +26,12 @@ class acl_device_binary_t { public: ~acl_device_binary_t() { unload_content(); } + acl_device_binary_t &operator=(const acl_device_binary_t &) = delete; + + acl_device_binary_t(const acl_device_binary_t &) = delete; + + acl_device_binary_t() = default; + inline void set_dev_prog(acl_device_program_info_t *dev_prog) { m_dev_prog = dev_prog; }