Skip to content

Commit ce5059b

Browse files
authored
fix warings from libraries (#691)
1 parent 384408f commit ce5059b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dpnp/backend/kernels/dpnp_krnl_sorting.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ void dpnp_partition_c(
139139
}
140140
}
141141

142-
    size_t* shape = reinterpret_cast<size_t*>(dpnp_memory_alloc_c(ndim * sizeof(size_t)));
142+
size_t* shape = reinterpret_cast<size_t*>(dpnp_memory_alloc_c(ndim * sizeof(size_t)));
143143
auto memcpy_event = DPNP_QUEUE.memcpy(shape, shape_, ndim * sizeof(size_t));
144144

145145
memcpy_event.wait();
@@ -172,7 +172,7 @@ void dpnp_partition_c(
172172

173173
event.wait();
174174

175-
    dpnp_memory_free_c(shape);
175+
dpnp_memory_free_c(shape);
176176
}
177177

178178
template <typename _DataType>

dpnp/backend/src/dpnp_pstl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
#define BACKEND_PSTL_H
4040

4141
#pragma clang diagnostic push
42-
// #pragma clang diagnostic ignored "-Wunused-local-typedef"
42+
#pragma clang diagnostic ignored "-Wunused-local-typedef"
4343
#pragma clang diagnostic ignored "-Wunknown-pragmas"
4444
#pragma clang diagnostic ignored "-Wsign-compare"
45-
// #pragma clang diagnostic ignored "-Wunused-variable"
45+
#pragma clang diagnostic ignored "-Wunused-variable"
4646
#pragma clang diagnostic ignored "-Wunused-parameter"
4747
#pragma clang diagnostic ignored "-Wshadow"
4848

dpnp/backend/src/queue_sycl.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
#ifndef QUEUE_SYCL_H // Cython compatibility
2828
#define QUEUE_SYCL_H
2929

30-
#pragma clang diagnostic push
31-
#pragma clang diagnostic ignored "-Wpass-failed"
30+
//#pragma clang diagnostic push
31+
//#pragma clang diagnostic ignored "-Wpass-failed"
3232
#include <CL/sycl.hpp>
33-
#pragma clang diagnostic pop
33+
//#pragma clang diagnostic pop
3434

3535
#pragma clang diagnostic push
3636
#pragma clang diagnostic ignored "-Wunused-parameter"

0 commit comments

Comments
 (0)