From c3852c474344228ebe1170f8dfe12458b586dca4 Mon Sep 17 00:00:00 2001 From: Marcel Metz Date: Wed, 20 Nov 2013 14:42:18 +0100 Subject: [PATCH] Removed noops and warnings on unused variables. --- tools/assimp_view/HelpDialog.cpp | 3 +-- tools/assimp_view/LogWindow.cpp | 2 +- tools/assimp_view/assimp_view.cpp | 4 ---- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/tools/assimp_view/HelpDialog.cpp b/tools/assimp_view/HelpDialog.cpp index 7e0e5ddfe..3fb09f0c1 100644 --- a/tools/assimp_view/HelpDialog.cpp +++ b/tools/assimp_view/HelpDialog.cpp @@ -53,7 +53,7 @@ namespace AssimpView { INT_PTR CALLBACK HelpDialogProc(HWND hwndDlg,UINT uMsg, WPARAM wParam,LPARAM lParam) { - lParam; + (void)lParam; switch (uMsg) { case WM_INITDIALOG: @@ -70,7 +70,6 @@ INT_PTR CALLBACK HelpDialogProc(HWND hwndDlg,UINT uMsg, SendDlgItemMessage(hwndDlg,IDC_RICHEDIT21, EM_SETTEXTEX,(WPARAM)&sInfo,( LPARAM) pData); - UnlockResource(hg); FreeResource(hg); return TRUE; } diff --git a/tools/assimp_view/LogWindow.cpp b/tools/assimp_view/LogWindow.cpp index c073028eb..7fd4a6179 100644 --- a/tools/assimp_view/LogWindow.cpp +++ b/tools/assimp_view/LogWindow.cpp @@ -70,7 +70,7 @@ static const char* AI_VIEW_RTF_LOG_HEADER = INT_PTR CALLBACK LogDialogProc(HWND hwndDlg,UINT uMsg, WPARAM wParam,LPARAM lParam) { - lParam; + (void)lParam; switch (uMsg) { case WM_INITDIALOG: diff --git a/tools/assimp_view/assimp_view.cpp b/tools/assimp_view/assimp_view.cpp index 5af9cf547..27bc8083a 100644 --- a/tools/assimp_view/assimp_view.cpp +++ b/tools/assimp_view/assimp_view.cpp @@ -872,12 +872,10 @@ int CreateHUDTexture() g_pcTexture = NULL; g_szImageMask = NULL; - UnlockResource(hg); FreeResource(hg); return 0; } - UnlockResource(hg); FreeResource(hg); D3DSURFACE_DESC sDesc; @@ -909,12 +907,10 @@ int CreateHUDTexture() D3DCOLOR_ARGB(0xFF,0xFF,0,0)); g_szImageMask = NULL; - UnlockResource(hg); FreeResource(hg); return 0; } - UnlockResource(hg); FreeResource(hg); // lock the texture and copy it to get a pointer