fix warnings

This commit is contained in:
2023-11-25 14:02:07 +01:00
parent 2ea1e96401
commit 557a43e265
2 changed files with 5 additions and 5 deletions

View File

@ -329,7 +329,7 @@ Atom wm_client_get_atom(Wm *wm, Client *c, const char *name, unsigned char **ato
Client* wm_client_get_dir_rel_c(Client *c, int dir)
{
DEBUG_PRINT("%s c: %p\n", __func__, c)
DEBUG_PRINT("%s c: %p\n", __func__, (void*)c)
if (!c)
return NULL;
@ -391,7 +391,7 @@ Client* wm_client_get_dir_rel_c(Client *c, int dir)
ret:
wm_ptrarray_free(&client_nodes);
DEBUG_PRINT("%s returning %p\n", __func__, ret);
DEBUG_PRINT("%s returning %p\n", __func__, (void*)ret);
return ret;
}
@ -444,7 +444,7 @@ void wm_monitor_clients_border(Wm *wm, Monitor *m)
for (size_t i = 0; i < clients.size; i++) {
Client *client = ((TreeNode*)clients.ptrs[i])->client;
DEBUG_PRINT("monitor border c: %p\n", client)
DEBUG_PRINT("monitor border c: %p\n", (void*)client)
DEBUG_PRINT("monitor border c window: %ld\n", client->window)
wm_client_border(wm, client);
}

View File

@ -230,7 +230,7 @@ void wm_switch_ws(Wm *wm, size_t ws)
int wscc = 0;
Client *c;
DEBUG_PRINT("switching to ws %d, clients:", ws);
DEBUG_PRINT("switching to ws %ld, clients:", ws);
wm_treenode_print(wm->smon->workspaces[ws].tree);
PtrArray current_ws_clients = wm_treenode_find_client_nodes_ptr(
@ -488,7 +488,7 @@ void wm_exit(Wm *wm)
for (size_t k = 0; k < clients.size; k++) {
Client *c = ((TreeNode*)clients.ptrs[k])->client;
XKillClient(wm->display, c->window);
DEBUG_PRINT("freeing client %p\n", c);
DEBUG_PRINT("freeing client %p\n", (void*)c);
wm_client_free(wm, c);
}
wm_ptrarray_free(&clients);