mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-26 17:44:30 +02:00
Fixed unused variable on Linux
This commit is contained in:
@@ -178,8 +178,7 @@ static const char *executable_folder(void)
|
|||||||
_NSGetExecutablePath(&path[0], &length);
|
_NSGetExecutablePath(&path[0], &length);
|
||||||
#else
|
#else
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
ssize_t length = readlink("/proc/self/exe", &path[0], sizeof(path) - 1);
|
assert (readlink("/proc/self/exe", &path[0], sizeof(path) - 1) != -1);
|
||||||
assert (length != -1);
|
|
||||||
#else
|
#else
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
HMODULE hModule = GetModuleHandle(NULL);
|
HMODULE hModule = GetModuleHandle(NULL);
|
||||||
|
Reference in New Issue
Block a user