Warning fixes for WinCE.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-06-18 09:48:15 +00:00
parent ed679e7422
commit 991420e6df
6 changed files with 109 additions and 101 deletions

View File

@@ -27,13 +27,17 @@
# pragma warning(disable:4100)
#ifdef __WXWINCE__
/*
"unreferenced inline function has been removed": this is not
suppressed by push above as it is given at the end of the
compilation unit
*/
/* windows.h results in tons of warnings at max warning level */
# ifdef _MSC_VER
# pragma warning(push, 1)
# endif
# include <windows.h>
# ifdef _MSC_VER
# pragma warning(pop)
# pragma warning(disable:4514)
#endif /* __WXWINCE__ */
# endif
#endif
#endif /* _MSC_VER */
#include <winsock.h>

View File

@@ -35,16 +35,11 @@
/* windows.h results in tons of warnings at max warning level */
# ifdef _MSC_VER
# pragma warning(push, 1)
/*
"unreferenced inline function has been removed": this is not
suppressed by push above as it is given at the end of the
compilation unit
*/
# pragma warning(disable:4514)
# endif
# include <windows.h>
# ifdef _MSC_VER
# pragma warning(pop)
# pragma warning(disable:4514)
# endif
#endif

View File

@@ -422,6 +422,7 @@ bool wxTopLevelWindowMSW::CreateFrame(const wxString& title,
defined(__SMARTPHONE__))
// Always expand to fit the screen in PocketPC or SmartPhone
wxSize sz(wxDefaultSize);
wxUnusedVar(size);
#else // other (including normal desktop) Windows
wxSize sz(size);
#endif

View File

@@ -918,11 +918,12 @@ bool wxToolBar::MSWOnNotify(int WXUNUSED(idCtrl),
wxToolBarToolBase *tool = FindById(id);
if ( !tool )
return FALSE;
return false;
return HandleTooltipNotify(code, lParam, tool->GetShortHelp());
#else
return FALSE;
wxUnusedVar(lParam);
return false;
#endif
}
@@ -1133,7 +1134,7 @@ void wxToolBar::OnMouseEvent(wxMouseEvent& event)
}
}
void wxToolBar::HandleMouseMove(WXWPARAM wParam, WXLPARAM lParam)
void wxToolBar::HandleMouseMove(WXWPARAM WXUNUSED(wParam), WXLPARAM lParam)
{
wxCoord x = GET_X_LPARAM(lParam),
y = GET_Y_LPARAM(lParam);

View File

@@ -52,7 +52,7 @@ long timezone ; // global variable
////////////////////////////////////////////////////////////////////////
// Common code for localtime and gmtime (static)
////////////////////////////////////////////////////////////////////////
static struct tm * __cdecl common_localtime(const time_t * t, BOOL bLocal)
static struct tm * __cdecl common_localtime(const time_t * WXUNUSED(t), BOOL bLocal)
{
wxString str ;
SYSTEMTIME SystemTime;

View File

@@ -4710,6 +4710,9 @@ int wxWindowMSW::HandleMenuChar(int chAccel, WXLPARAM lParam)
wxLogLastError(_T("GetMenuItemInfo"));
}
}
#else
wxUnusedVar(chAccel);
wxUnusedVar(lParam);
#endif
return wxNOT_FOUND;
}
@@ -4798,6 +4801,10 @@ bool wxWindowMSW::HandleJoystickEvent(WXUINT msg, int x, int y, WXUINT flags)
return GetEventHandler()->ProcessEvent(event);
#else
wxUnusedVar(msg);
wxUnusedVar(x);
wxUnusedVar(y);
wxUnusedVar(flags);
return false;
#endif
}