Fix warning with -Wall
This commit is contained in:
parent
c782f9a223
commit
f04bfc1f39
@ -13,6 +13,7 @@ Client *client_gb_win(Window w);
|
||||
void client_map(Client *c);
|
||||
void client_unmap(Client *c);
|
||||
void client_focus(Client *c);
|
||||
void client_get_name(Client *c);
|
||||
void client_close(Client *c);
|
||||
Client *client_new(Window w, XWindowAttributes *wa);
|
||||
void client_remove(Client *c);
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
static void
|
||||
event_buttonpress(XEvent *e)
|
||||
{
|
||||
XButtonEvent *ev = &e->xbutton;
|
||||
/*XButtonEvent *ev = &e->xbutton;*/
|
||||
|
||||
}
|
||||
|
||||
@ -36,8 +36,8 @@ event_enternotify(XEvent *e)
|
||||
static void
|
||||
event_clientmessageevent(XEvent *e)
|
||||
{
|
||||
XClientMessageEvent *ev = &e->xclient;
|
||||
Client *c;
|
||||
/* XClientMessageEvent *ev = &e->xclient;
|
||||
Client *c;*/
|
||||
}
|
||||
|
||||
static void
|
||||
@ -186,7 +186,6 @@ event_keypress(XEvent *e)
|
||||
{
|
||||
XKeyPressedEvent *ev = &e->xkey;
|
||||
KeySym keysym = XKeycodeToKeysym(EVDPY(e), (KeyCode)ev->keycode, 0);
|
||||
Flags m = ~(W->numlockmask | LockMask);
|
||||
Keybind *k;
|
||||
|
||||
SLIST_FOREACH(k, &W->h.keybind, next)
|
||||
|
||||
@ -12,6 +12,7 @@ enum { ElemTag = 0, ElemLayout, ElemSelbar, ElemStatus, ElemCustom };
|
||||
|
||||
void infobar_init(void);
|
||||
Infobar *infobar_new(Scr33n *s);
|
||||
void infobar_elem_update(Infobar *i);
|
||||
void infobar_refresh(Infobar *i);
|
||||
void infobar_remove(Infobar *i);
|
||||
void infobar_free(Scr33n *s);
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
#include "screen.h"
|
||||
#include "util.h"
|
||||
#include "tag.h"
|
||||
#include "infobar.h"
|
||||
|
||||
static Scr33n*
|
||||
screen_new(Geo *g, int id)
|
||||
|
||||
@ -55,6 +55,7 @@ uicb_tag_set(Uicb cmd)
|
||||
void
|
||||
uicb_tag_next(Uicb cmd)
|
||||
{
|
||||
(void)cmd;
|
||||
Tag *t;
|
||||
|
||||
if((t = TAILQ_NEXT(W->screen->seltag, next)))
|
||||
@ -66,6 +67,7 @@ uicb_tag_next(Uicb cmd)
|
||||
void
|
||||
uicb_tag_prev(Uicb cmd)
|
||||
{
|
||||
(void)cmd;
|
||||
Tag *t;
|
||||
|
||||
if((t = TAILQ_PREV(W->screen->seltag, tsub, next)))
|
||||
|
||||
@ -3,6 +3,8 @@
|
||||
* For license, see COPYING.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE /* vasprintf() */
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@ -9,8 +9,12 @@
|
||||
|
||||
#include "wmfs.h"
|
||||
#include "event.h"
|
||||
#include "ewmh.h"
|
||||
#include "screen.h"
|
||||
#include "infobar.h"
|
||||
#include "util.h"
|
||||
#include "config.h"
|
||||
#include "client.h"
|
||||
|
||||
int
|
||||
wmfs_error_handler(Display *d, XErrorEvent *event)
|
||||
@ -146,7 +150,6 @@ wmfs_scan(void)
|
||||
int i, n;
|
||||
XWindowAttributes wa;
|
||||
Window usl, usl2, *w = NULL;
|
||||
Client *c;
|
||||
|
||||
/*
|
||||
Atom rt;
|
||||
@ -155,7 +158,7 @@ wmfs_scan(void)
|
||||
uchar *ret;
|
||||
*/
|
||||
|
||||
if(XQueryTree(W->dpy, W->root, &usl, &usl2, &w, &n))
|
||||
if(XQueryTree(W->dpy, W->root, &usl, &usl2, &w, (unsigned int*)&n))
|
||||
for(i = n - 1; i != -1; --i)
|
||||
{
|
||||
XGetWindowAttributes(W->dpy, w[i], &wa);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user