[hackers] [wmii] Declare ignored_errors extern in cmd/wmii/x11.c. Fix warning. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Fri, 2 Oct 2009 20:47:09 +0000 (UTC)

changeset: 2513:b7cf943c8c72
user: Kris Maglione <jg_AT_suckless.org>
date: Fri Oct 02 16:12:22 2009 -0400
files: cmd/menu/main.c cmd/wmii/area.c cmd/wmii/main.c cmd/wmii/x11.c cmd/wmii9menu.c
description:
Declare ignored_errors extern in cmd/wmii/x11.c. Fix warning.

diff -r cb1b262706e7 -r b7cf943c8c72 cmd/menu/main.c
--- a/cmd/menu/main.c Fri Oct 02 13:35:18 2009 -0400
+++ b/cmd/menu/main.c Fri Oct 02 16:12:22 2009 -0400
@@ -163,21 +163,8 @@
                 update_input();
 }
 
-/*
- * There's no way to check accesses to destroyed windows, thus
- * those cases are ignored (especially on UnmapNotifies).
- * Other types of errors call Xlib's default error handler, which
- * calls exit().
- */
 ErrorCode ignored_xerrors[] = {
- { 0, BadWindow },
- { X_SetInputFocus, BadMatch },
- { X_PolyText8, BadDrawable },
- { X_PolyFillRectangle, BadDrawable },
- { X_PolySegment, BadDrawable },
- { X_ConfigureWindow, BadMatch },
- { X_GrabKey, BadAccess },
- { X_GetAtomName, BadAtom },
+ { 0, }
 };
 
 static void
diff -r cb1b262706e7 -r b7cf943c8c72 cmd/wmii/area.c
--- a/cmd/wmii/area.c Fri Oct 02 13:35:18 2009 -0400
+++ b/cmd/wmii/area.c Fri Oct 02 16:12:22 2009 -0400
@@ -80,7 +80,7 @@
         Area *a;
 
         assert(!pos || pos->screen == scrn);
- SET(i);
+ SET(index);
         if(v->areas) { /* Creating a column. */
                 minwidth = column_minwidth();
                 index = pos ? area_idx(pos) : 1;
diff -r cb1b262706e7 -r b7cf943c8c72 cmd/wmii/main.c
--- a/cmd/wmii/main.c Fri Oct 02 13:35:18 2009 -0400
+++ b/cmd/wmii/main.c Fri Oct 02 16:12:22 2009 -0400
@@ -153,6 +153,7 @@
         { X_ConfigureWindow, BadMatch },
         { X_GrabKey, BadAccess },
         { X_GetAtomName, BadAtom },
+ { 0, }
 };
 
 void
diff -r cb1b262706e7 -r b7cf943c8c72 cmd/wmii/x11.c
--- a/cmd/wmii/x11.c Fri Oct 02 13:35:18 2009 -0400
+++ b/cmd/wmii/x11.c Fri Oct 02 16:12:22 2009 -0400
@@ -195,7 +195,7 @@
 
 /* Error handling */
 
-ErrorCode ignored_xerrors[];
+extern ErrorCode ignored_xerrors[];
 static bool _trap_errors;
 static long nerrors;
 
diff -r cb1b262706e7 -r b7cf943c8c72 cmd/wmii9menu.c
--- a/cmd/wmii9menu.c Fri Oct 02 13:35:18 2009 -0400
+++ b/cmd/wmii9menu.c Fri Oct 02 16:12:22 2009 -0400
@@ -81,6 +81,10 @@
 void memory(void);
 int args(void);
 
+ErrorCode ignored_xerrors[] = {
+ { 0, }
+};
+
 /* main --- crack arguments, set up X stuff, run the main menu loop */
 
 int
Received on Fri Oct 02 2009 - 20:47:09 UTC

This archive was generated by hypermail 2.2.0 : Fri Oct 02 2009 - 20:48:07 UTC