directfb: Fixed compiler warnings about unused variables.
authorPhilipp Wiesemann
Thu, 11 May 2017 23:00:21 +0200
changeset 10998cedca11e9b61
parent 10997 b6315b6bc32f
child 10999 77da466731bc
directfb: Fixed compiler warnings about unused variables.
src/video/directfb/SDL_DirectFB_mouse.c
src/video/directfb/SDL_DirectFB_opengl.c
     1.1 --- a/src/video/directfb/SDL_DirectFB_mouse.c	Wed May 10 16:18:43 2017 -0400
     1.2 +++ b/src/video/directfb/SDL_DirectFB_mouse.c	Thu May 11 23:00:21 2017 +0200
     1.3 @@ -84,11 +84,9 @@
     1.4  
     1.5      SDL_DFB_DEVICEDATA(dev);
     1.6      DFB_CursorData *curdata;
     1.7 -    DFBResult ret;
     1.8      DFBSurfaceDescription dsc;
     1.9      SDL_Cursor *cursor;
    1.10      Uint32 *dest;
    1.11 -    Uint32 *p;
    1.12      int pitch, i, j;
    1.13  
    1.14      SDL_DFB_ALLOC_CLEAR( cursor, sizeof(*cursor));
    1.15 @@ -139,7 +137,6 @@
    1.16  
    1.17      SDL_DFB_DEVICEDATA(dev);
    1.18      DFB_CursorData *curdata;
    1.19 -    DFBResult ret;
    1.20      DFBSurfaceDescription dsc;
    1.21      SDL_Cursor *cursor;
    1.22      Uint32 *dest;
    1.23 @@ -184,7 +181,6 @@
    1.24  DirectFB_ShowCursor(SDL_Cursor * cursor)
    1.25  {
    1.26      SDL_DFB_CURSORDATA(cursor);
    1.27 -    DFBResult ret;
    1.28      SDL_Window *window;
    1.29  
    1.30      window = SDL_GetFocusWindow();
    1.31 @@ -239,7 +235,6 @@
    1.32      SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
    1.33      DFB_DisplayData *dispdata = (DFB_DisplayData *) display->driverdata;
    1.34      DFB_WindowData *windata = (DFB_WindowData *) window->driverdata;
    1.35 -    DFBResult ret;
    1.36      int cx, cy;
    1.37  
    1.38      SDL_DFB_CHECKERR(windata->dfbwin->GetPosition(windata->dfbwin, &cx, &cy));
     2.1 --- a/src/video/directfb/SDL_DirectFB_opengl.c	Wed May 10 16:18:43 2017 -0400
     2.2 +++ b/src/video/directfb/SDL_DirectFB_opengl.c	Thu May 11 23:00:21 2017 +0200
     2.3 @@ -243,14 +243,8 @@
     2.4  DirectFB_GL_SwapWindow(_THIS, SDL_Window * window)
     2.5  {
     2.6      SDL_DFB_WINDOWDATA(window);
     2.7 -    DFBRegion region;
     2.8      DirectFB_GLContext *p;
     2.9  
    2.10 -    region.x1 = 0;
    2.11 -    region.y1 = 0;
    2.12 -    region.x2 = window->w;
    2.13 -    region.y2 = window->h;
    2.14 -
    2.15  #if 0
    2.16      if (devdata->glFinish)
    2.17          devdata->glFinish();