From 202ab176974098eb97c1b5a1b561cd356a88b06e Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Thu, 27 Dec 2012 23:12:14 +0100 Subject: [PATCH] Fixed some warnings Signed-off-by: Sven Strickroth --- src/SshAskPass/SshAskPass.cpp | 14 +++++--------- src/touch/touch.cpp | 13 +++++-------- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/src/SshAskPass/SshAskPass.cpp b/src/SshAskPass/SshAskPass.cpp index 3da8d28b3..6bfe46145 100644 --- a/src/SshAskPass/SshAskPass.cpp +++ b/src/SshAskPass/SshAskPass.cpp @@ -1,6 +1,6 @@ // TortoiseGit - a Windows shell extension for easy version control -// Copyright (C) 2008-2011 - TortoiseGit +// Copyright (C) 2008-2012 - TortoiseGit // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -41,13 +41,11 @@ TCHAR *g_Prompt = NULL; TCHAR g_PassWord[MAX_LOADSTRING]; -int APIENTRY _tWinMain(HINSTANCE hInstance, - HINSTANCE hPrevInstance, +int APIENTRY _tWinMain(HINSTANCE /*hInstance*/, + HINSTANCE /*hPrevInstance*/, LPTSTR lpCmdLine, - int nCmdShow) + int /*nCmdShow*/) { - UNREFERENCED_PARAMETER(hPrevInstance); - SetDllDirectory(L""); if( _tcslen(lpCmdLine) == 0 ) @@ -96,7 +94,6 @@ int APIENTRY _tWinMain(HINSTANCE hInstance, _tprintf(_T("\n")); return -1; } - return (int) 0; } void MarkWindowAsUnpinnable(HWND hWnd) @@ -123,9 +120,8 @@ void MarkWindowAsUnpinnable(HWND hWnd) } // Message handler for password box. -INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM /*lParam*/) { - UNREFERENCED_PARAMETER(lParam); switch (message) { case WM_INITDIALOG: diff --git a/src/touch/touch.cpp b/src/touch/touch.cpp index cb5794a79..c8089cd8c 100644 --- a/src/touch/touch.cpp +++ b/src/touch/touch.cpp @@ -1,6 +1,6 @@ // TortoiseGit - a Windows shell extension for easy version control -// Copyright (C) 2010-2011 - TortoiseGit +// Copyright (C) 2010-2012 - TortoiseGit // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -38,13 +38,11 @@ INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); TCHAR longname[MAX_PATH +1]; -int APIENTRY _tWinMain(HINSTANCE hInstance, - HINSTANCE hPrevInstance, +int APIENTRY _tWinMain(HINSTANCE /*hInstance*/, + HINSTANCE /*hPrevInstance*/, LPTSTR lpCmdLine, - int nCmdShow) + int /*nCmdShow*/) { - UNREFERENCED_PARAMETER(hPrevInstance); - SetDllDirectory(L""); if(_tcslen(lpCmdLine) == 0) @@ -185,9 +183,8 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) } // Message handler for about box. -INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM /*lParam*/) { - UNREFERENCED_PARAMETER(lParam); switch (message) { case WM_INITDIALOG: -- 2.11.4.GIT