From 1def3b3512b595870cdd5e23a0d2feaaa29843c0 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 9 Jan 2009 15:09:39 +0000 Subject: [PATCH] Fixed warnings reported on CDash --- src/osgViewer/GraphicsWindowWin32.cpp | 6 ++++-- src/osgViewer/PixelBufferWin32.cpp | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/osgViewer/GraphicsWindowWin32.cpp b/src/osgViewer/GraphicsWindowWin32.cpp index 2ef90b4f2..2bae6698f 100644 --- a/src/osgViewer/GraphicsWindowWin32.cpp +++ b/src/osgViewer/GraphicsWindowWin32.cpp @@ -1977,7 +1977,7 @@ HCURSOR GraphicsWindowWin32::getOrCreateCursor(MouseCursor mouseCursor) _mouseCursorMap[mouseCursor] = NULL; break; case RightArrowCursor: - _mouseCursorMap[mouseCursor] = LoadCursor( NULL, IDC_ARROW); + _mouseCursorMap[mouseCursor] = LoadCursor( NULL, IDC_ARROW); break; case LeftArrowCursor: _mouseCursorMap[mouseCursor] = LoadCursor( NULL, IDC_ARROW); @@ -2036,6 +2036,8 @@ HCURSOR GraphicsWindowWin32::getOrCreateCursor(MouseCursor mouseCursor) case BottomLeftCorner: _mouseCursorMap[mouseCursor] = LoadCursor( NULL, IDC_SIZENESW ); break; + default: + break; } return _mouseCursorMap[mouseCursor]; @@ -2445,7 +2447,7 @@ struct RegisterWindowingSystemInterfaceProxy static RegisterWindowingSystemInterfaceProxy createWindowingSystemInterfaceProxy; -}; // namespace OsgViewer +} // namespace OsgViewer // declare C entry point for static compilation. diff --git a/src/osgViewer/PixelBufferWin32.cpp b/src/osgViewer/PixelBufferWin32.cpp index 419eddded..8189c0fe0 100644 --- a/src/osgViewer/PixelBufferWin32.cpp +++ b/src/osgViewer/PixelBufferWin32.cpp @@ -591,7 +591,6 @@ void PixelBufferWin32::init() fAttribList.push_back(0); bAttribList.push_back(0); - HGLRC hglrc = 0; HDC hdc = 0; int format; osg::ref_ptr tempWin;