Skip to content

Commit c494112

Browse files
authored
[SYCL][NFC] Fix unreferenced variable warning (#1158)
Also remove idle semicolon. Signed-off-by: Alexey Bader <[email protected]>
1 parent 5d73019 commit c494112

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/source/detail/os_util.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,14 @@ std::string OSUtil::getCurrentDSODir() {
205205
sizeof(Path));
206206
assert(Ret < sizeof(Path) && "Path is longer than PATH_MAX?");
207207
assert(Ret > 0 && "GetModuleFileNameA failed");
208+
(void)Ret;
208209

209210
BOOL RetCode = PathRemoveFileSpecA(reinterpret_cast<LPSTR>(&Path));
210211
assert(RetCode && "PathRemoveFileSpecA failed");
211212
(void)RetCode;
212213

213214
return Path;
214-
};
215+
}
215216

216217
#elif defined(SYCL_RT_OS_DARWIN)
217218
OSModuleHandle OSUtil::getOSModuleHandle(const void *VirtAddr) {

0 commit comments

Comments
 (0)