From bd1502c251bb81e4dc2e3bda90e93d6fbde51ea2 Mon Sep 17 00:00:00 2001 From: Petr Vesely Date: Mon, 14 Aug 2023 15:31:47 +0100 Subject: [PATCH] [UR] Fix gcc diagnostic warning for deprecated --- test/conformance/adapters/hip/test_context.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/conformance/adapters/hip/test_context.cpp b/test/conformance/adapters/hip/test_context.cpp index 8be836ad75..d89dff5c89 100644 --- a/test/conformance/adapters/hip/test_context.cpp +++ b/test/conformance/adapters/hip/test_context.cpp @@ -3,6 +3,8 @@ // See LICENSE.TXT // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" #include "context.hpp" #include "hip_fixtures.h" #include "queue.hpp" @@ -15,7 +17,6 @@ UUR_INSTANTIATE_DEVICE_TEST_SUITE_P(urHipContextTest); constexpr int HIP_DRIVER_API_VERSION = 4; TEST_P(urHipContextTest, ActiveContexts) { - ur_context_handle_t context = nullptr; ASSERT_SUCCESS(urContextCreate(1, &device, nullptr, &context)); ASSERT_NE(context, nullptr); @@ -109,3 +110,4 @@ TEST_P(urHipContextTest, ActiveContextsThreads) { ASSERT_SUCCESS(urContextRelease(context2)); } +#pragma GCC diagnostic pop