From cd6fb7a9bd8139ae30fa9c930c2edc0058e66791 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 15 Apr 2015 15:52:55 +0200 Subject: [PATCH] Avoid harmless unused variable warning in the ownerdrw sample. MSVC8 gives .\ownerdrw.cpp(96) : warning C4189: 'pFrame' : local variable is initialized but not referenced so just don't define this variable to avoid the warning. --- samples/ownerdrw/ownerdrw.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/samples/ownerdrw/ownerdrw.cpp b/samples/ownerdrw/ownerdrw.cpp index c14a408380..fb720147bd 100644 --- a/samples/ownerdrw/ownerdrw.cpp +++ b/samples/ownerdrw/ownerdrw.cpp @@ -92,9 +92,7 @@ bool OwnerDrawnApp::OnInit(void) if ( !wxApp::OnInit() ) return false; - OwnerDrawnFrame *pFrame - = new OwnerDrawnFrame(NULL, wxT("wxWidgets Ownerdraw Sample"), - 50, 50, 450, 340); + new OwnerDrawnFrame(NULL, "wxWidgets Ownerdraw Sample", 50, 50, 450, 340); return true; }