Skip to content

Commit

Permalink
[SYCL][NFC] Fix unreferenced variable warning (#1158)
Browse files Browse the repository at this point in the history
Also remove idle semicolon.

Signed-off-by: Alexey Bader <alexey.bader@intel.com>
  • Loading branch information
bader authored Feb 22, 2020
1 parent 5d73019 commit c494112
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sycl/source/detail/os_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<LPSTR>(&Path));
assert(RetCode && "PathRemoveFileSpecA failed");
(void)RetCode;

return Path;
};
}

#elif defined(SYCL_RT_OS_DARWIN)
OSModuleHandle OSUtil::getOSModuleHandle(const void *VirtAddr) {
Expand Down

0 comments on commit c494112

Please sign in to comment.