sdl12-compat: silenced -Wunused-result for readlink().

From 744cfca92761747683d06147685a751691f7e13c Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 22 Dec 2023 14:56:24 +0300
Subject: [PATCH] silenced -Wunused-result for readlink().

From sdl2-compat, original patch by Sylvain Becker (@1bsyl).
---
 src/SDL12_compat.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index 864e976cb..3d849c32f 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -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) {