]> git.sur5r.net Git - i3/i3/blobdiff - src/window.c
Fix clang -Wextra except -Wunused-parameter.
[i3/i3] / src / window.c
index b51be53f9f4e86db4f99692e8a75f6072a5884e6..219e64ce78639532d4b55869cce098fbdf11d0e5 100644 (file)
@@ -32,7 +32,7 @@ void window_update_class(i3Window *win, xcb_get_property_reply_t *prop, bool bef
     FREE(win->class_class);
 
     win->class_instance = sstrdup(new_class);
-    if ((strlen(new_class) + 1) < xcb_get_property_value_length(prop))
+    if ((strlen(new_class) + 1) < (size_t)xcb_get_property_value_length(prop))
         win->class_class = sstrdup(new_class + strlen(new_class) + 1);
     else win->class_class = NULL;
     LOG("WM_CLASS changed to %s (instance), %s (class)\n",