Fix some Wunused-but-set warnings (#1666)

To the best of my understanding, these occurrences of the
`-Wunused-but-set` warnings do not reveal any underlying issues, so we
can safely remove these variables.  There are more occurrences of this
warning in other places (not touched by this commit) that require
further analysis.

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
Sven van Haastregt
2023-03-30 09:34:00 +01:00
committed by GitHub
parent 8e74722a0a
commit a70fa56003
12 changed files with 3 additions and 42 deletions

View File

@@ -279,9 +279,6 @@ cl_int cBuffer_check_mem_host_write_only<T>::verify_RW_Buffer_rect()
template <class T>
cl_int cBuffer_check_mem_host_write_only<T>::update_host_mem_2()
{
size_t global_work_size[3] = { 0, 1, 1 };
global_work_size[0] = this->get_block_size_bytes();
cl_event event, event_2;
cl_int err = clEnqueueCopyBuffer(
this->m_queue, this->m_buffer, this->m_buffer2, 0, 0,