From d83a83ef5021c1e329127d3c6402088aeb1c1dd1 Mon Sep 17 00:00:00 2001 From: dhewg Date: Tue, 29 Mar 2011 21:55:21 +0200 Subject: JANITORIAL: Remove/comment unused vars Found by GCC 4.6's -Wunused-but-set-variable --- backends/graphics/sdl/sdl-graphics.cpp | 5 ----- backends/midi/timidity.cpp | 3 +-- 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'backends') diff --git a/backends/graphics/sdl/sdl-graphics.cpp b/backends/graphics/sdl/sdl-graphics.cpp index c0d93b3bf2..67b979a830 100644 --- a/backends/graphics/sdl/sdl-graphics.cpp +++ b/backends/graphics/sdl/sdl-graphics.cpp @@ -1978,7 +1978,6 @@ void SdlGraphicsManager::drawMouse() { SDL_Rect dst; int scale; - int width, height; int hotX, hotY; dst.x = _mouseCurState.x; @@ -1986,16 +1985,12 @@ void SdlGraphicsManager::drawMouse() { if (!_overlayVisible) { scale = _videoMode.scaleFactor; - width = _videoMode.screenWidth; - height = _videoMode.screenHeight; dst.w = _mouseCurState.vW; dst.h = _mouseCurState.vH; hotX = _mouseCurState.vHotX; hotY = _mouseCurState.vHotY; } else { scale = 1; - width = _videoMode.overlayWidth; - height = _videoMode.overlayHeight; dst.w = _mouseCurState.rW; dst.h = _mouseCurState.rH; hotX = _mouseCurState.rHotX; diff --git a/backends/midi/timidity.cpp b/backends/midi/timidity.cpp index 642ddf6917..c01b9bbef7 100644 --- a/backends/midi/timidity.cpp +++ b/backends/midi/timidity.cpp @@ -428,10 +428,9 @@ void MidiDriver_TIMIDITY::timidity_write_data(const void *buf, size_t nbytes) { } int MidiDriver_TIMIDITY::fdgets(char *buff, size_t buff_size) { - int n, len, count, size; + int n, count, size; char *buff_endp = buff + buff_size - 1, *pbuff, *beg; - len = 0; count = _controlbuffer_count; size = _controlbuffer_size; pbuff = _controlbuffer; -- cgit v1.2.3