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