Fix tests build with wxDEBUG_LEVEL==0
Define various macros used in the test code (or in the headers included from it) as nothing when wxDEBUG_LEVEL==0. Also don't define a helper function used when asserts are enabled in this build to avoid clang warnings about unused function.
This commit is contained in:
@@ -331,6 +331,8 @@ extern WXDLLIMPEXP_BASE void wxOnAssert(const char *file,
|
||||
#define wxFAIL
|
||||
#define wxFAIL_MSG(msg)
|
||||
#define wxFAIL_COND_MSG(cond, msg)
|
||||
#define wxFAIL_MSG_AT(msg, file, line, func)
|
||||
#define wxFAIL_COND_MSG_AT(cond, msg, file, line, func)
|
||||
#endif // wxDEBUG_LEVEL
|
||||
|
||||
#if wxDEBUG_LEVEL >= 2
|
||||
|
Reference in New Issue
Block a user