[hackers] [wmii] Fix warnings that I don't get. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Tue, 29 Sep 2009 18:51:17 +0000 (UTC)

changeset: 2495:07349611c2be
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Tue Sep 29 14:50:57 2009 -0400
files: cmd/wmii/view.c cmd/wmii/x11.c libwmii_hack/hack.c
description:
Fix warnings that I don't get.

diff -r 47dac5f225a7 -r 07349611c2be cmd/wmii/view.c
--- a/cmd/wmii/view.c Tue Sep 29 14:41:59 2009 -0400
+++ b/cmd/wmii/view.c Tue Sep 29 14:50:57 2009 -0400
@@ -373,6 +373,7 @@
                      || group_leader(c->group)
                         && !client_viewframe(group_leader(c->group),
                                              c->sel->view);
+ USED(newgroup);
 
         if(!(c->w.ewmh.type & (TypeSplash|TypeDock))) {
                 if(!(c->tagre.regex && regexec(c->tagre.regc, v->name, nil, 0)))
diff -r 47dac5f225a7 -r 07349611c2be cmd/wmii/x11.c
--- a/cmd/wmii/x11.c Tue Sep 29 14:41:59 2009 -0400
+++ b/cmd/wmii/x11.c Tue Sep 29 14:50:57 2009 -0400
@@ -1047,7 +1047,8 @@
 
 XWindow
 getfocus(void) {
- XWindow ret, revert;
+ XWindow ret;
+ int revert;
 
         XGetInputFocus(display, &ret, &revert);
         return ret;
diff -r 47dac5f225a7 -r 07349611c2be libwmii_hack/hack.c
--- a/libwmii_hack/hack.c Tue Sep 29 14:41:59 2009 -0400
+++ b/libwmii_hack/hack.c Tue Sep 29 14:50:57 2009 -0400
@@ -20,7 +20,6 @@
 
 static void* xlib;
 
-static long lastwin;
 static long transient;
 static Atom types[32];
 static long ntypes;
@@ -89,12 +88,6 @@
         gethostname(hostname, sizeof hostname);
 }
 
-static int /* Temporary Xlib error handler */
-ignoreerrors(Display *d, XErrorEvent *e) {
- //USED(d, e);
- return 0;
-}
-
 static void
 setprops(Display *d, Window w) {
         long *l;
Received on Tue Sep 29 2009 - 18:51:17 UTC

This archive was generated by hypermail 2.2.0 : Tue Sep 29 2009 - 19:00:06 UTC