[Commits] SDL: Fixed warnings about shadowed global variable.

libsdl.org revision control commits-owner at libsdl.org
Fri May 12 14:08:25 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/a194d919972c
changeset: 11001:a194d919972c
user:      Philipp Wiesemann <philipp.wiesemann at arcor.de>
date:      Fri May 12 23:01:04 2017 +0200
description:
Fixed warnings about shadowed global variable.

Found by buildbot.

diffstat:

 src/video/SDL_video.c |  4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diffs (21 lines):

diff -r f2f47e7b4908 -r a194d919972c src/video/SDL_video.c
--- a/src/video/SDL_video.c	Fri May 12 23:00:40 2017 +0200
+++ b/src/video/SDL_video.c	Fri May 12 23:01:04 2017 +0200
@@ -3872,8 +3872,6 @@
 
 void SDL_OnApplicationWillResignActive()
 {
-    SDL_VideoDevice *_this = SDL_GetVideoDevice();
-
     if (_this) {
         SDL_Window *window;
         for (window = _this->windows; window != NULL; window = window->next) {
@@ -3896,8 +3894,6 @@
 
 void SDL_OnApplicationDidBecomeActive()
 {
-    SDL_VideoDevice *_this = SDL_GetVideoDevice();
-
     SDL_SendAppEvent(SDL_APP_DIDENTERFOREGROUND);
 
     if (_this) {


More information about the commits mailing list