Fixed a bunch of warnings.
This commit is contained in:
parent
08c9ac6cbb
commit
491aa4b9a7
19
xcompmgr.c
19
xcompmgr.c
|
@ -625,9 +625,7 @@ shadow_picture (Display *dpy, double opacity, Picture alpha_pict, int width, int
|
||||||
{
|
{
|
||||||
XImage *shadowImage;
|
XImage *shadowImage;
|
||||||
Pixmap shadowPixmap;
|
Pixmap shadowPixmap;
|
||||||
Pixmap finalPixmap;
|
|
||||||
Picture shadowPicture;
|
Picture shadowPicture;
|
||||||
Picture finalPicture;
|
|
||||||
GC gc;
|
GC gc;
|
||||||
|
|
||||||
shadowImage = make_shadow (dpy, opacity, width, height);
|
shadowImage = make_shadow (dpy, opacity, width, height);
|
||||||
|
@ -1172,7 +1170,6 @@ static void
|
||||||
map_win (Display *dpy, Window id, unsigned long sequence, Bool fade)
|
map_win (Display *dpy, Window id, unsigned long sequence, Bool fade)
|
||||||
{
|
{
|
||||||
win *w = find_win (dpy, id);
|
win *w = find_win (dpy, id);
|
||||||
Drawable back;
|
|
||||||
|
|
||||||
if (!w)
|
if (!w)
|
||||||
return;
|
return;
|
||||||
|
@ -1339,7 +1336,6 @@ determine_mode(Display *dpy, win *w)
|
||||||
{
|
{
|
||||||
int mode;
|
int mode;
|
||||||
XRenderPictFormat *format;
|
XRenderPictFormat *format;
|
||||||
unsigned int default_opacity;
|
|
||||||
|
|
||||||
/* if trans prop == -1 fall back on previous tests*/
|
/* if trans prop == -1 fall back on previous tests*/
|
||||||
|
|
||||||
|
@ -1516,7 +1512,6 @@ static void
|
||||||
configure_win (Display *dpy, XConfigureEvent *ce)
|
configure_win (Display *dpy, XConfigureEvent *ce)
|
||||||
{
|
{
|
||||||
win *w = find_win (dpy, ce->window);
|
win *w = find_win (dpy, ce->window);
|
||||||
Window above;
|
|
||||||
XserverRegion damage = None;
|
XserverRegion damage = None;
|
||||||
|
|
||||||
if (!w)
|
if (!w)
|
||||||
|
@ -1770,7 +1765,7 @@ error (Display *dpy, XErrorEvent *ev)
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf ("error %d request %d minor %d serial %d\n",
|
printf ("error %d request %d minor %d serial %lu\n",
|
||||||
ev->error_code, ev->request_code, ev->minor_code, ev->serial);
|
ev->error_code, ev->request_code, ev->minor_code, ev->serial);
|
||||||
|
|
||||||
/* abort (); this is just annoying to most people */
|
/* abort (); this is just annoying to most people */
|
||||||
|
@ -1785,7 +1780,7 @@ expose_root (Display *dpy, Window root, XRectangle *rects, int nrects)
|
||||||
add_damage (dpy, region);
|
add_damage (dpy, region);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if DEBUG_EVENTS
|
||||||
static int
|
static int
|
||||||
ev_serial (XEvent *ev)
|
ev_serial (XEvent *ev)
|
||||||
{
|
{
|
||||||
|
@ -1794,7 +1789,6 @@ ev_serial (XEvent *ev)
|
||||||
return NextRequest (ev->xany.display);
|
return NextRequest (ev->xany.display);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
ev_name (XEvent *ev)
|
ev_name (XEvent *ev)
|
||||||
{
|
{
|
||||||
|
@ -1838,6 +1832,7 @@ ev_window (XEvent *ev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
usage (char *program)
|
usage (char *program)
|
||||||
|
@ -1888,19 +1883,13 @@ main (int argc, char **argv)
|
||||||
XEvent ev;
|
XEvent ev;
|
||||||
Window root_return, parent_return;
|
Window root_return, parent_return;
|
||||||
Window *children;
|
Window *children;
|
||||||
Pixmap transPixmap;
|
|
||||||
Pixmap blackPixmap;
|
|
||||||
unsigned int nchildren;
|
unsigned int nchildren;
|
||||||
int i;
|
int i;
|
||||||
XRenderPictureAttributes pa;
|
XRenderPictureAttributes pa;
|
||||||
XRenderColor c;
|
|
||||||
XRectangle *expose_rects = 0;
|
XRectangle *expose_rects = 0;
|
||||||
int size_expose = 0;
|
int size_expose = 0;
|
||||||
int n_expose = 0;
|
int n_expose = 0;
|
||||||
struct pollfd ufd;
|
struct pollfd ufd;
|
||||||
int n;
|
|
||||||
int last_update;
|
|
||||||
int now;
|
|
||||||
int p;
|
int p;
|
||||||
int composite_major, composite_minor;
|
int composite_major, composite_minor;
|
||||||
char *display = 0;
|
char *display = 0;
|
||||||
|
@ -2081,7 +2070,7 @@ main (int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
XNextEvent (dpy, &ev);
|
XNextEvent (dpy, &ev);
|
||||||
if (ev.type & 0x7f != KeymapNotify)
|
if ((ev.type & 0x7f) != KeymapNotify)
|
||||||
discard_ignore (dpy, ev.xany.serial);
|
discard_ignore (dpy, ev.xany.serial);
|
||||||
#if DEBUG_EVENTS
|
#if DEBUG_EVENTS
|
||||||
printf ("event %10.10s serial 0x%08x window 0x%08x\n",
|
printf ("event %10.10s serial 0x%08x window 0x%08x\n",
|
||||||
|
|
Loading…
Reference in New Issue