From 60133f8d9a9c0f86c5b718083b7e4ab01ca5b805 Mon Sep 17 00:00:00 2001 From: Bill Meltsner Date: Mon, 22 Mar 2010 23:57:28 -0500 Subject: [PATCH] should fix gcc warning about passing a const char * to SDL_putenv --- src/modules/graphics/opengl/Graphics.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index d8eb0b530..4cfd44203 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -38,8 +38,7 @@ namespace opengl currentMode.height = 0; // Window should be centered. - char * center = "SDL_VIDEO_CENTERED=center"; - SDL_putenv(center); + SDL_putenv(const_cast("SDL_VIDEO_CENTERED=center")); if(SDL_InitSubSystem(SDL_INIT_VIDEO) < 0) throw Exception(SDL_GetError());