Removed noops and warnings on unused variables.

pull/185/head
Marcel Metz 2013-11-20 14:42:18 +01:00
parent c6297ec333
commit c3852c4743
3 changed files with 2 additions and 7 deletions

View File

@ -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;
}

View File

@ -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:

View File

@ -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