[Commits] SDL: directfb: Fixed compiler warnings about unused variables.

libsdl.org revision control commits-owner at libsdl.org
Thu May 11 14:06:56 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/cedca11e9b61
changeset: 10998:cedca11e9b61
user:      Philipp Wiesemann <philipp.wiesemann at arcor.de>
date:      Thu May 11 23:00:21 2017 +0200
description:
directfb: Fixed compiler warnings about unused variables.

diffstat:

 src/video/directfb/SDL_DirectFB_mouse.c  |  5 -----
 src/video/directfb/SDL_DirectFB_opengl.c |  6 ------
 2 files changed, 0 insertions(+), 11 deletions(-)

diffs (57 lines):

diff -r b6315b6bc32f -r cedca11e9b61 src/video/directfb/SDL_DirectFB_mouse.c
--- a/src/video/directfb/SDL_DirectFB_mouse.c	Wed May 10 16:18:43 2017 -0400
+++ b/src/video/directfb/SDL_DirectFB_mouse.c	Thu May 11 23:00:21 2017 +0200
@@ -84,11 +84,9 @@
 
     SDL_DFB_DEVICEDATA(dev);
     DFB_CursorData *curdata;
-    DFBResult ret;
     DFBSurfaceDescription dsc;
     SDL_Cursor *cursor;
     Uint32 *dest;
-    Uint32 *p;
     int pitch, i, j;
 
     SDL_DFB_ALLOC_CLEAR( cursor, sizeof(*cursor));
@@ -139,7 +137,6 @@
 
     SDL_DFB_DEVICEDATA(dev);
     DFB_CursorData *curdata;
-    DFBResult ret;
     DFBSurfaceDescription dsc;
     SDL_Cursor *cursor;
     Uint32 *dest;
@@ -184,7 +181,6 @@
 DirectFB_ShowCursor(SDL_Cursor * cursor)
 {
     SDL_DFB_CURSORDATA(cursor);
-    DFBResult ret;
     SDL_Window *window;
 
     window = SDL_GetFocusWindow();
@@ -239,7 +235,6 @@
     SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
     DFB_DisplayData *dispdata = (DFB_DisplayData *) display->driverdata;
     DFB_WindowData *windata = (DFB_WindowData *) window->driverdata;
-    DFBResult ret;
     int cx, cy;
 
     SDL_DFB_CHECKERR(windata->dfbwin->GetPosition(windata->dfbwin, &cx, &cy));
diff -r b6315b6bc32f -r cedca11e9b61 src/video/directfb/SDL_DirectFB_opengl.c
--- a/src/video/directfb/SDL_DirectFB_opengl.c	Wed May 10 16:18:43 2017 -0400
+++ b/src/video/directfb/SDL_DirectFB_opengl.c	Thu May 11 23:00:21 2017 +0200
@@ -243,14 +243,8 @@
 DirectFB_GL_SwapWindow(_THIS, SDL_Window * window)
 {
     SDL_DFB_WINDOWDATA(window);
-    DFBRegion region;
     DirectFB_GLContext *p;
 
-    region.x1 = 0;
-    region.y1 = 0;
-    region.x2 = window->w;
-    region.y2 = window->h;
-
 #if 0
     if (devdata->glFinish)
         devdata->glFinish();


More information about the commits mailing list