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
|
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;
|
langProcData *data = (langProcData*) lParam;
|
||||||
|
|
||||||
|
@ -310,7 +310,7 @@ FillLangListProc(HANDLE module, PTSTR type, PTSTR stringId, WORD langId, LONG_PT
|
||||||
|
|
||||||
|
|
||||||
INT_PTR CALLBACK
|
INT_PTR CALLBACK
|
||||||
LanguageSettingsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
|
LanguageSettingsDlgProc(HWND hwndDlg, UINT msg, UNUSED WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
LPPSHNOTIFY psn;
|
LPPSHNOTIFY psn;
|
||||||
langProcData langData = {
|
langProcData langData = {
|
||||||
|
|
5
main.c
5
main.c
|
@ -92,7 +92,6 @@ int WINAPI WinMain (HINSTANCE hThisInstance,
|
||||||
UNUSED LPSTR lpszArgument,
|
UNUSED LPSTR lpszArgument,
|
||||||
UNUSED int nCmdShow)
|
UNUSED int nCmdShow)
|
||||||
{
|
{
|
||||||
HWND hwnd; /* This is the handle for our window */
|
|
||||||
MSG messages; /* Here messages to the application are saved */
|
MSG messages; /* Here messages to the application are saved */
|
||||||
WNDCLASSEX wincl; /* Data structure for the windowclass */
|
WNDCLASSEX wincl; /* Data structure for the windowclass */
|
||||||
DWORD shell32_version;
|
DWORD shell32_version;
|
||||||
|
@ -202,7 +201,7 @@ int WINAPI WinMain (HINSTANCE hThisInstance,
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
/* The class is registered, let's create the program*/
|
/* The class is registered, let's create the program*/
|
||||||
hwnd = CreateWindowEx (
|
CreateWindowEx (
|
||||||
0, /* Extended possibilites for variation */
|
0, /* Extended possibilites for variation */
|
||||||
szClassName, /* Classname */
|
szClassName, /* Classname */
|
||||||
szTitleText, /* Title Text */
|
szTitleText, /* Title Text */
|
||||||
|
@ -403,7 +402,7 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
|
||||||
|
|
||||||
|
|
||||||
static INT_PTR CALLBACK
|
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;
|
LPPSHNOTIFY psn;
|
||||||
if (msg == WM_NOTIFY) {
|
if (msg == WM_NOTIFY) {
|
||||||
|
|
|
@ -54,7 +54,7 @@ const TCHAR *cfgProp = _T("conn");
|
||||||
* Format: <BANNER>
|
* Format: <BANNER>
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
OnReady(connection_t *c, char *msg)
|
OnReady(connection_t *c, UNUSED char *msg)
|
||||||
{
|
{
|
||||||
ManagementCommand(c, "state on", NULL, regular);
|
ManagementCommand(c, "state on", NULL, regular);
|
||||||
ManagementCommand(c, "log all on", OnLogLine, combined);
|
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
|
* Handle the request to release a hold from the OpenVPN management interface
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
OnHold(connection_t *c, char *msg)
|
OnHold(connection_t *c, UNUSED char *msg)
|
||||||
{
|
{
|
||||||
ManagementCommand(c, "hold off", NULL, regular);
|
ManagementCommand(c, "hold off", NULL, regular);
|
||||||
ManagementCommand(c, "hold release", NULL, regular);
|
ManagementCommand(c, "hold release", NULL, regular);
|
||||||
|
@ -345,7 +345,7 @@ OnPassword(connection_t *c, char *msg)
|
||||||
* Handle exit of the OpenVPN process
|
* Handle exit of the OpenVPN process
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
OnStop(connection_t *c, char *msg)
|
OnStop(connection_t *c, UNUSED char *msg)
|
||||||
{
|
{
|
||||||
UINT txt_id, msg_id;
|
UINT txt_id, msg_id;
|
||||||
SetMenuStatus(c, disconnected);
|
SetMenuStatus(c, disconnected);
|
||||||
|
|
Loading…
Reference in New Issue