wmfs compile with -W -Wall -Wextra (TODO: fix types !!)

This commit is contained in:
Philippe Pepiot
2010-11-17 02:27:15 +01:00
parent b6c557a8ee
commit c2664e8e85
18 changed files with 127 additions and 58 deletions

View File

@@ -236,7 +236,7 @@ clientmessageevent(XClientMessageEvent *ev)
/* Manage _NET_WM_DESKTOP */
if(mess_t == net_wm_desktop)
if((c = client_gb_win(ev->window)) && ev->data.l[0] != 0xFFFFFFFF)
if((c = client_gb_win(ev->window)) && ev->data.l[0] != (long)0xFFFFFFFF)
tag_transfert(c, ev->data.l[0]);
/* Manage _WMFS_STATUSTEXT_x */
@@ -446,7 +446,7 @@ focusin(XFocusChangeEvent *ev)
void
grabkeys(void)
{
uint i;
int i;
KeyCode code;
XUngrabKey(dpy, AnyKey, AnyModifier, ROOT);
@@ -468,7 +468,7 @@ grabkeys(void)
void
keypress(XKeyPressedEvent *ev)
{
uint i;
int i;
KeySym keysym;
keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
@@ -607,6 +607,7 @@ propertynotify(XPropertyEvent *ev)
void
reparentnotify(XReparentEvent *ev)
{
(void)ev;
return;
}