a couple of more left over Borland unused variable/code warnings fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-10-20 10:52:17 +00:00
parent f1430ac766
commit dd639a4f27
3 changed files with 9 additions and 2 deletions

View File

@ -751,7 +751,14 @@ DECLARE_LOG_FUNCTION2(SysError, unsigned long, lErrCode);
// empty functions if their parameters are complicated enough, but by
// defining them as an empty inline function we ensure that even dumbest
// compilers optimise them away
#ifdef __BORLANDC__
// but Borland gives "W8019: Code has no effect" for wxLogNop() so we need
// to define it differently for it to avoid these warnings (same problem as
// with wxUnusedVar())
#define wxLogNop() { }
#else
inline void wxLogNop() { }
#endif
#define wxVLogDebug(fmt, valist) wxLogNop()
#define wxVLogTrace(mask, fmt, valist) wxLogNop()

View File

@ -2651,7 +2651,7 @@ void wxDataViewMainWindow::ScrollTo( int rows, int column )
{
wxRect rect = GetClientRect();
int colnum = 0;
int x_start = 0, w = 0;
int x_start, w = 0;
int xx, yy, xe;
m_owner->CalcUnscrolledPosition( rect.x, rect.y, &xx, &yy );
for (x_start = 0; colnum < column; colnum++)

View File

@ -658,7 +658,7 @@ void wxFrame::PositionToolBar()
toolbar->GetPosition( &tx, &ty );
toolbar->GetSize( &tw, &th );
int x = 0, y = 0;
int x, y;
if ( toolbar->HasFlag(wxTB_BOTTOM) )
{
x = 0;