From 8e3a31739237b0920c736a101d0ab8aa85dcce5a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 13 Feb 2016 13:13:24 +0100 Subject: [PATCH] Remove useless #ifdef wxUSE_DEBUG_NEW_ALWAYS check This symbol is tested using "#if", so it should be always defined and there is no need for testing whether this is the case. Moreover, doing this useless check triggers warning C4574 (which is disabled by default, but it's useful enough to enable it explicitly) with VC14 about using "#ifdef" with a symbol defined as 0. --- include/wx/defs.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/wx/defs.h b/include/wx/defs.h index 9a28c6fd3e..7dc03afd2e 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -911,10 +911,8 @@ typedef short int WXTYPE; /* where should i put this? we need to make sure of this as it breaks */ /* the code. */ #if !wxUSE_IOSTREAMH && defined(__WXDEBUG__) -# ifdef wxUSE_DEBUG_NEW_ALWAYS # undef wxUSE_DEBUG_NEW_ALWAYS # define wxUSE_DEBUG_NEW_ALWAYS 0 -# endif #endif /* ---------------------------------------------------------------------------- */