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