From 80c047d6e16620fb34b6cecd734d869392eaf6a3 Mon Sep 17 00:00:00 2001 From: Nishant Mysore Date: Thu, 21 Sep 2023 12:24:16 -0500 Subject: [PATCH] Cast handle to void in case we are building on windows without XDP_MINIMAL_BUILD Signed-off-by: Nishant Mysore --- src/runtime_src/core/common/xdp/profile.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/runtime_src/core/common/xdp/profile.cpp b/src/runtime_src/core/common/xdp/profile.cpp index 4ea6797e312..caf29a001c7 100644 --- a/src/runtime_src/core/common/xdp/profile.cpp +++ b/src/runtime_src/core/common/xdp/profile.cpp @@ -26,7 +26,11 @@ register_callbacks(void* handle) #ifdef XDP_MINIMAL_BUILD update_device_cb = reinterpret_cast(xrt_core::dlsym(handle, "updateAIECtrDevice")); end_poll_cb = reinterpret_cast(xrt_core::dlsym(handle, "endAIECtrPoll")); + #else + (void)handle; #endif + + } void