Explicitly cast string literal to avoid warning.

This commit is contained in:
Themaister 2012-10-26 23:04:36 +02:00
parent bda505c95b
commit be35179ec6

View File

@ -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);
}