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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user