diff --git a/lib/check.h b/lib/check.h index 082f63c1b..c6e6a0d52 100644 --- a/lib/check.h +++ b/lib/check.h @@ -35,7 +35,11 @@ * Using this macro we can make sure that released binaries don't crash/hang but the problem is not hidden * in debug builds. */ +#ifdef NDEBUG #define CHECK_WRONG_DATA(X) (X) +#else +#define CHECK_WRONG_DATA(X) (1) +#endif namespace tinyxml2 { class XMLElement;