Skip to content

Commit ecfd3dc

Browse files
committed
silence some more warnings
1 parent 833e2e5 commit ecfd3dc

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

hip/base/device.hip.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2017 - 2024 The Ginkgo authors
1+
// SPDX-FileCopyrightText: 2017 - 2025 The Ginkgo authors
22
//
33
// SPDX-License-Identifier: BSD-3-Clause
44

@@ -20,7 +20,7 @@ namespace hip {
2020
void reset_device(int device_id)
2121
{
2222
gko::detail::hip_scoped_device_id_guard guard{device_id};
23-
hipDeviceReset();
23+
(void)hipDeviceReset();
2424
}
2525

2626

hip/base/memory.hip.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2017 - 2024 The Ginkgo authors
1+
// SPDX-FileCopyrightText: 2017 - 2025 The Ginkgo authors
22
//
33
// SPDX-License-Identifier: BSD-3-Clause
44

@@ -30,7 +30,7 @@ namespace gko {
3030
const auto error_code = _operation; \
3131
if (error_code != hipSuccess) { \
3232
int device_id{-1}; \
33-
hipGetDevice(&device_id); \
33+
(void)hipGetDevice(&device_id); \
3434
std::cerr << "Unrecoverable HIP error on device " << device_id \
3535
<< " in " << __func__ << ": " \
3636
<< hipGetErrorName(error_code) << ": " \

hip/base/stream.hip.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2017 - 2024 The Ginkgo authors
1+
// SPDX-FileCopyrightText: 2017 - 2025 The Ginkgo authors
22
//
33
// SPDX-License-Identifier: BSD-3-Clause
44

@@ -29,7 +29,7 @@ hip_stream::~hip_stream()
2929
{
3030
if (stream_) {
3131
detail::hip_scoped_device_id_guard g(device_id_);
32-
hipStreamDestroy(stream_);
32+
(void)hipStreamDestroy(stream_);
3333
}
3434
}
3535

0 commit comments

Comments
 (0)