From 39a08656f77a3c53b19ce8acb8b385abd784c96a Mon Sep 17 00:00:00 2001 From: nakeee Date: Mon, 8 Sep 2008 06:41:03 +0000 Subject: [PATCH] warning fixes git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@481 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/main.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp index f7004ed962..1692d7acc0 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp @@ -113,9 +113,6 @@ void DllConfig(HWND _hParent) #elif defined(__linux__) ConfigDialog frame(NULL); g_Config.Load(); - XVisualInfo *vi; - Colormap cmap; - int dpyWidth, dpyHeight; int glxMajorVersion, glxMinorVersion; int vidModeMajorVersion, vidModeMinorVersion; GLWin.dpy = XOpenDisplay(0); @@ -257,9 +254,9 @@ bool ScreenShot(TCHAR *File) Renderer::RestoreGLState(); if (Renderer::SaveRenderTarget(File, 0)) { - char str[255]; - sprintf(str, "saved %s\n", File); - Renderer::AddMessage(str, 500); + char msg[255]; + sprintf(msg, "saved %s\n", File); + Renderer::AddMessage(msg, 500); return true; } return false;