mirror of https://github.com/OpenVPN/openvpn-gui
tag unused variables to stop compiler warnings
parent
0bac9ed151
commit
18376e2f2e
|
@ -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 = {
|
||||
|
|
5
main.c
5
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) {
|
||||
|
|
|
@ -54,7 +54,7 @@ const TCHAR *cfgProp = _T("conn");
|
|||
* Format: <BANNER>
|
||||
*/
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue