Declare ignored_errors extern in cmd/wmii/x11.c. Fix warning.

This commit is contained in:
Kris Maglione 2009-10-02 16:12:22 -04:00
parent ab9caa789e
commit ebd63a2aa7
5 changed files with 8 additions and 16 deletions

View File

@ -163,21 +163,8 @@ update_filter(bool print) {
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

View File

@ -80,7 +80,7 @@ area_create(View *v, Area *pos, int scrn, uint width) {
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;

View File

@ -153,6 +153,7 @@ ErrorCode ignored_xerrors[] = {
{ X_ConfigureWindow, BadMatch },
{ X_GrabKey, BadAccess },
{ X_GetAtomName, BadAtom },
{ 0, }
};
void

View File

@ -195,7 +195,7 @@ initdisplay(void) {
/* Error handling */
ErrorCode ignored_xerrors[];
extern ErrorCode ignored_xerrors[];
static bool _trap_errors;
static long nerrors;

View File

@ -81,6 +81,10 @@ void warpmouse(int, int);
void memory(void);
int args(void);
ErrorCode ignored_xerrors[] = {
{ 0, }
};
/* main --- crack arguments, set up X stuff, run the main menu loop */
int