Patched to compile with -Werror=declaration-after-statement
authorRyan C. Gordon <icculus@icculus.org>
Wed, 25 Jun 2014 17:13:43 -0400
changeset 89547bcc8257809d
parent 8953 dc80dc0bd22e
child 8955 7a74b402790c
Patched to compile with -Werror=declaration-after-statement
src/video/x11/SDL_x11events.c
     1.1 --- a/src/video/x11/SDL_x11events.c	Wed Jun 25 17:06:12 2014 -0400
     1.2 +++ b/src/video/x11/SDL_x11events.c	Wed Jun 25 17:13:43 2014 -0400
     1.3 @@ -389,12 +389,12 @@
     1.4      SDL_VideoData *viddata = (SDL_VideoData *) _this->driverdata;
     1.5      SDL_Window* window = data->window;
     1.6      Display *display = viddata->display;
     1.7 +    XEvent evt;
     1.8  
     1.9      /* !!! FIXME: we need to regrab this if necessary when the drag is done. */
    1.10      X11_XUngrabPointer(display, 0L);
    1.11      X11_XFlush(display);
    1.12  
    1.13 -    XEvent evt;
    1.14      evt.xclient.type = ClientMessage;
    1.15      evt.xclient.window = data->xwindow;
    1.16      evt.xclient.message_type = X11_XInternAtom(display, "_NET_WM_MOVERESIZE", True);
    1.17 @@ -415,6 +415,7 @@
    1.18      SDL_VideoData *viddata = (SDL_VideoData *) _this->driverdata;
    1.19      SDL_Window* window = data->window;
    1.20      Display *display = viddata->display;
    1.21 +    XEvent evt;
    1.22  
    1.23      if (direction < _NET_WM_MOVERESIZE_SIZE_TOPLEFT || direction > _NET_WM_MOVERESIZE_SIZE_LEFT)
    1.24          return;
    1.25 @@ -423,7 +424,6 @@
    1.26      X11_XUngrabPointer(display, 0L);
    1.27      X11_XFlush(display);
    1.28  
    1.29 -    XEvent evt;
    1.30      evt.xclient.type = ClientMessage;
    1.31      evt.xclient.window = data->xwindow;
    1.32      evt.xclient.message_type = X11_XInternAtom(display, "_NET_WM_MOVERESIZE", True);