git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56466
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// 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
// 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() { }
inline void wxLogNop() { }
#define wxVLogDebug(fmt, valist) wxLogNop()
#define wxVLogTrace(mask, fmt, valist) wxLogNop()
#define wxVLogDebug(fmt, valist) wxLogNop()
#define wxVLogTrace(mask, fmt, valist) wxLogNop()
{
wxRect rect = GetClientRect();
int colnum = 0;
{
wxRect rect = GetClientRect();
int colnum = 0;
- int x_start = 0, w = 0;
int xx, yy, xe;
m_owner->CalcUnscrolledPosition( rect.x, rect.y, &xx, &yy );
for (x_start = 0; colnum < column; colnum++)
int xx, yy, xe;
m_owner->CalcUnscrolledPosition( rect.x, rect.y, &xx, &yy );
for (x_start = 0; colnum < column; colnum++)
toolbar->GetPosition( &tx, &ty );
toolbar->GetSize( &tw, &th );
toolbar->GetPosition( &tx, &ty );
toolbar->GetSize( &tw, &th );
if ( toolbar->HasFlag(wxTB_BOTTOM) )
{
x = 0;
if ( toolbar->HasFlag(wxTB_BOTTOM) )
{
x = 0;