From dd604be1acacef733647982bd9a8ba8d5daa1990 Mon Sep 17 00:00:00 2001 From: Alexey Bader Date: Fri, 21 Feb 2020 16:27:24 +0300 Subject: [PATCH 1/2] [SYCL][NFC] Fix unreferenced variable warning Signed-off-by: Alexey Bader --- sycl/source/detail/os_util.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sycl/source/detail/os_util.cpp b/sycl/source/detail/os_util.cpp index 7d1f4936cb047..d0f464123181f 100644 --- a/sycl/source/detail/os_util.cpp +++ b/sycl/source/detail/os_util.cpp @@ -205,6 +205,7 @@ 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"); From 46a0f2e08f841976013a45ec8073182d88b4f663 Mon Sep 17 00:00:00 2001 From: Alexey Bader Date: Fri, 21 Feb 2020 16:55:57 +0300 Subject: [PATCH 2/2] [SYCL][NFC] Remove idle semicolon Signed-off-by: Alexey Bader --- sycl/source/detail/os_util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/source/detail/os_util.cpp b/sycl/source/detail/os_util.cpp index d0f464123181f..89fa24029b925 100644 --- a/sycl/source/detail/os_util.cpp +++ b/sycl/source/detail/os_util.cpp @@ -212,7 +212,7 @@ std::string OSUtil::getCurrentDSODir() { (void)RetCode; return Path; -}; +} #elif defined(SYCL_RT_OS_DARWIN) OSModuleHandle OSUtil::getOSModuleHandle(const void *VirtAddr) {