Skip to content

Commit

Permalink
silenced -Wunused-result for readlink().
Browse files Browse the repository at this point in the history
From sdl2-compat, original patch by Sylvain Becker (@1bsyl).
  • Loading branch information
sezero committed Dec 22, 2023
1 parent 5bfdc5e commit 744cfca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/SDL12_compat.c
Expand Up @@ -1318,8 +1318,10 @@ static QuirkEntryType quirks[] = {

#ifdef __linux__
static void OS_GetExeName(char *buf, const unsigned maxpath) {
int ret;
buf[0] = '\0';
readlink("/proc/self/exe", buf, maxpath);
ret = readlink("/proc/self/exe", buf, maxpath);
(void)ret;
}
#elif defined(_WIN32)
static void OS_GetExeName(char *buf, const unsigned maxpath) {
Expand Down

0 comments on commit 744cfca

Please sign in to comment.