From be35179ec69c4a2fbc4b407f609ff1859e8cf2b5 Mon Sep 17 00:00:00 2001 From: Themaister Date: Fri, 26 Oct 2012 23:04:36 +0200 Subject: [PATCH] Explicitly cast string literal to avoid warning. --- gfx/context/x11_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/context/x11_common.c b/gfx/context/x11_common.c index 90d49b38ab..4720d356ce 100644 --- a/gfx/context/x11_common.c +++ b/gfx/context/x11_common.c @@ -100,8 +100,8 @@ void x11_move_window(Display *dpy, Window win, int x, int y, static void x11_set_window_class(Display *dpy, Window win) { XClassHint hint = {0}; - hint.res_name = "retroarch"; - hint.res_class = "retroarch"; + hint.res_name = (char*)"retroarch"; // Broken header. + hint.res_class = (char*)"retroarch"; XSetClassHint(dpy, win, &hint); }