Added wxUnusedVar for Borland and fixed 2 release mode warnings for Borland (patch #835707); Slight code cleanup.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Dimitri Schoolwerth
2003-11-10 15:17:46 +00:00
parent cd32c91a3e
commit 8703bc01c2
3 changed files with 19 additions and 13 deletions

View File

@@ -457,8 +457,12 @@ typedef int wxWindowID;
// sometimes the value of a variable is *really* not used, to suppress the
// resulting warning you may pass it to this function
#ifdef __BORLANDC__
#define wxUnusedVar(identifier) identifier
#else
template <class T>
inline void wxUnusedVar(const T& WXUNUSED(t)) { }
#endif
// ----------------------------------------------------------------------------
// compiler specific settings