diff --git a/sycl/source/detail/os_util.cpp b/sycl/source/detail/os_util.cpp index 7d1f4936cb047..89fa24029b925 100644 --- a/sycl/source/detail/os_util.cpp +++ b/sycl/source/detail/os_util.cpp @@ -205,13 +205,14 @@ std::string OSUtil::getCurrentDSODir() { sizeof(Path)); assert(Ret < sizeof(Path) && "Path is longer than PATH_MAX?"); assert(Ret > 0 && "GetModuleFileNameA failed"); + (void)Ret; BOOL RetCode = PathRemoveFileSpecA(reinterpret_cast(&Path)); assert(RetCode && "PathRemoveFileSpecA failed"); (void)RetCode; return Path; -}; +} #elif defined(SYCL_RT_OS_DARWIN) OSModuleHandle OSUtil::getOSModuleHandle(const void *VirtAddr) {