# SDL: filesystem/os2: disable -Wmultichar

**URL:** <https://discourse.libsdl.org/t/sdl-filesystem-os2-disable-wmultichar/69458>\
**Category:** SDL Commits\
**Created:** [October 2, 2026, 10:13am UTC](https://discourse.libsdl.org/t/sdl-filesystem-os2-disable-wmultichar/69458 "2026-10-02T10:13:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [October 2, 2026, 10:13am UTC](https://discourse.libsdl.org/t/sdl-filesystem-os2-disable-wmultichar/69458/1 "2026-10-02T10:13:04Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/0203da5f8017f77bc6254c6e8c43bb26f9551e90>

```diff
From 0203da5f8017f77bc6254c6e8c43bb26f9551e90 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 1 Oct 2026 23:55:04 +0300
Subject: [PATCH] filesystem/os2: disable -Wmultichar

---
 src/filesystem/os2/SDL_sysfilesystem.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/filesystem/os2/SDL_sysfilesystem.c b/src/filesystem/os2/SDL_sysfilesystem.c
index 8e30aaa2a8765..78296556ddbad 100644
--- a/src/filesystem/os2/SDL_sysfilesystem.c
+++ b/src/filesystem/os2/SDL_sysfilesystem.c
@@ -70,6 +70,11 @@ char *SDL_GetBasePath(void)
     return OS2_SysToUTF8(acBuf);
 }
 
+#if defined( __GNUC__ ) && ( __GNUC__ > 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ >= 6))
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wmultichar"
+#endif
+
 char *SDL_GetPrefPath(const char *org, const char *app)
 {
     PSZ pszPath;
@@ -124,6 +129,10 @@ char *SDL_GetPrefPath(const char *org, const char *app)
     return OS2_SysToUTF8(acBuf);
 }
 
+#if defined( __GNUC__ ) && ( __GNUC__ > 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ >= 6))
+#pragma GCC diagnostic pop
+#endif
+
 #endif /* SDL_FILESYSTEM_OS2 */
 
 /* vi: set ts=4 sw=4 expandtab: */

```
