harmless warning fixes for WinCE (mostly unused parameters)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -214,7 +214,9 @@ void wxPathList::AddEnvList (const wxString& envVariable)
|
|||||||
|
|
||||||
delete [] s;
|
delete [] s;
|
||||||
}
|
}
|
||||||
#endif
|
#else // __WXWINCE__
|
||||||
|
wxUnusedVar(envVariable);
|
||||||
|
#endif // !__WXWINCE__/__WXWINCE__
|
||||||
}
|
}
|
||||||
|
|
||||||
// Given a full filename (with path), ensure that that file can
|
// Given a full filename (with path), ensure that that file can
|
||||||
@@ -681,6 +683,8 @@ wxContractPath (const wxString& filename, const wxString& envname, const wxStrin
|
|||||||
wxStrcat (tcp, wxT("}"));
|
wxStrcat (tcp, wxT("}"));
|
||||||
wxStrcat (tcp, wxFileFunctionsBuffer);
|
wxStrcat (tcp, wxFileFunctionsBuffer);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
wxUnusedVar(envname);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Handle User's home (ignore root homes!)
|
// Handle User's home (ignore root homes!)
|
||||||
@@ -1330,6 +1334,9 @@ wxChar *wxGetWorkingDirectory(wxChar *buf, int sz)
|
|||||||
// TODO ?
|
// TODO ?
|
||||||
return NULL;
|
return NULL;
|
||||||
#elif defined(__WXWINCE__)
|
#elif defined(__WXWINCE__)
|
||||||
|
// TODO
|
||||||
|
wxUnusedVar(buf);
|
||||||
|
wxUnusedVar(sz);
|
||||||
return NULL;
|
return NULL;
|
||||||
#else
|
#else
|
||||||
if ( !buf )
|
if ( !buf )
|
||||||
@@ -1471,6 +1478,7 @@ bool wxSetWorkingDirectory(const wxString& d)
|
|||||||
#ifdef __WIN32__
|
#ifdef __WIN32__
|
||||||
#ifdef __WXWINCE__
|
#ifdef __WXWINCE__
|
||||||
// No equivalent in WinCE
|
// No equivalent in WinCE
|
||||||
|
wxUnusedVar(d);
|
||||||
return false;
|
return false;
|
||||||
#else
|
#else
|
||||||
return (bool)(SetCurrentDirectory(d) != 0);
|
return (bool)(SetCurrentDirectory(d) != 0);
|
||||||
|
@@ -335,6 +335,7 @@ bool wxDropTarget::Register(WXHWND hwnd)
|
|||||||
// Or maybe we can dynamically load them from ceshell.dll
|
// Or maybe we can dynamically load them from ceshell.dll
|
||||||
// or similar.
|
// or similar.
|
||||||
#if defined(__WXWINCE__) && _WIN32_WCE >= 400
|
#if defined(__WXWINCE__) && _WIN32_WCE >= 400
|
||||||
|
wxUnusedVar(hwnd);
|
||||||
return false;
|
return false;
|
||||||
#else
|
#else
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
@@ -369,6 +370,7 @@ void wxDropTarget::Revoke(WXHWND hwnd)
|
|||||||
{
|
{
|
||||||
#if defined(__WXWINCE__) && _WIN32_WCE >= 400
|
#if defined(__WXWINCE__) && _WIN32_WCE >= 400
|
||||||
// Not available, see note above
|
// Not available, see note above
|
||||||
|
wxUnusedVar(hwnd);
|
||||||
#else
|
#else
|
||||||
HRESULT hr = ::RevokeDragDrop((HWND) hwnd);
|
HRESULT hr = ::RevokeDragDrop((HWND) hwnd);
|
||||||
|
|
||||||
|
@@ -154,9 +154,9 @@ wxSize wxStaticBox::DoGetBestSize() const
|
|||||||
|
|
||||||
WXLRESULT wxStaticBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
|
WXLRESULT wxStaticBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
|
||||||
{
|
{
|
||||||
|
#ifndef __WXWINCE__
|
||||||
switch ( nMsg )
|
switch ( nMsg )
|
||||||
{
|
{
|
||||||
#ifndef __WXWINCE__
|
|
||||||
case WM_NCHITTEST:
|
case WM_NCHITTEST:
|
||||||
{
|
{
|
||||||
// This code breaks some other processing such as enter/leave tracking
|
// This code breaks some other processing such as enter/leave tracking
|
||||||
@@ -179,8 +179,8 @@ WXLRESULT wxStaticBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPar
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif // !__WXWINCE__
|
||||||
|
|
||||||
return wxControl::MSWWindowProc(nMsg, wParam, lParam);
|
return wxControl::MSWWindowProc(nMsg, wParam, lParam);
|
||||||
}
|
}
|
||||||
|
@@ -1012,6 +1012,8 @@ bool wxToolBar::MSWOnNotify(int WXUNUSED(idCtrl),
|
|||||||
|
|
||||||
return HandleTooltipNotify(code, lParam, tool->GetShortHelp());
|
return HandleTooltipNotify(code, lParam, tool->GetShortHelp());
|
||||||
#else
|
#else
|
||||||
|
wxUnusedVar(lParam);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user