From 18376e2f2ede51032409f4b04d5ba46ddad7c46b Mon Sep 17 00:00:00 2001 From: Heiko Hund Date: Mon, 12 Mar 2012 17:58:38 +0000 Subject: [PATCH] tag unused variables to stop compiler warnings --- localization.c | 4 ++-- main.c | 5 ++--- openvpn.c | 6 +++--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/localization.c b/localization.c index 8e86b50..7b1b491 100644 --- a/localization.c +++ b/localization.c @@ -292,7 +292,7 @@ typedef struct { static BOOL -FillLangListProc(HANDLE module, PTSTR type, PTSTR stringId, WORD langId, LONG_PTR lParam) +FillLangListProc(UNUSED HANDLE module, UNUSED PTSTR type, UNUSED PTSTR stringId, WORD langId, LONG_PTR lParam) { langProcData *data = (langProcData*) lParam; @@ -310,7 +310,7 @@ FillLangListProc(HANDLE module, PTSTR type, PTSTR stringId, WORD langId, LONG_PT INT_PTR CALLBACK -LanguageSettingsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) +LanguageSettingsDlgProc(HWND hwndDlg, UINT msg, UNUSED WPARAM wParam, LPARAM lParam) { LPPSHNOTIFY psn; langProcData langData = { diff --git a/main.c b/main.c index bf24fbc..fafc370 100644 --- a/main.c +++ b/main.c @@ -92,7 +92,6 @@ int WINAPI WinMain (HINSTANCE hThisInstance, UNUSED LPSTR lpszArgument, UNUSED int nCmdShow) { - HWND hwnd; /* This is the handle for our window */ MSG messages; /* Here messages to the application are saved */ WNDCLASSEX wincl; /* Data structure for the windowclass */ DWORD shell32_version; @@ -202,7 +201,7 @@ int WINAPI WinMain (HINSTANCE hThisInstance, return 1; /* The class is registered, let's create the program*/ - hwnd = CreateWindowEx ( + CreateWindowEx ( 0, /* Extended possibilites for variation */ szClassName, /* Classname */ szTitleText, /* Title Text */ @@ -403,7 +402,7 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM static INT_PTR CALLBACK -AboutDialogFunc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) +AboutDialogFunc(UNUSED HWND hDlg, UINT msg, UNUSED WPARAM wParam, LPARAM lParam) { LPPSHNOTIFY psn; if (msg == WM_NOTIFY) { diff --git a/openvpn.c b/openvpn.c index 5662c50..9b62473 100644 --- a/openvpn.c +++ b/openvpn.c @@ -54,7 +54,7 @@ const TCHAR *cfgProp = _T("conn"); * Format: */ void -OnReady(connection_t *c, char *msg) +OnReady(connection_t *c, UNUSED char *msg) { ManagementCommand(c, "state on", NULL, regular); ManagementCommand(c, "log all on", OnLogLine, combined); @@ -65,7 +65,7 @@ OnReady(connection_t *c, char *msg) * Handle the request to release a hold from the OpenVPN management interface */ void -OnHold(connection_t *c, char *msg) +OnHold(connection_t *c, UNUSED char *msg) { ManagementCommand(c, "hold off", NULL, regular); ManagementCommand(c, "hold release", NULL, regular); @@ -345,7 +345,7 @@ OnPassword(connection_t *c, char *msg) * Handle exit of the OpenVPN process */ void -OnStop(connection_t *c, char *msg) +OnStop(connection_t *c, UNUSED char *msg) { UINT txt_id, msg_id; SetMenuStatus(c, disconnected);