From 0c31aa03f0a90becc24221d2369d1fb8403056a8 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sat, 7 Aug 2004 06:25:20 +0000 Subject: [PATCH] Don't #error when doing a release build. Just put out an informative message, and pass the test. [SVN r24328] --- cstdint_test.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cstdint_test.cpp b/cstdint_test.cpp index c7a9c0c..08c13be 100644 --- a/cstdint_test.cpp +++ b/cstdint_test.cpp @@ -18,8 +18,12 @@ #include #ifdef NDEBUG -#error This test makes no sense with NDEBUG defined -#endif +int main() +{ + std::cout << "This test makes no sense with NDEBUG defined.\n"; + return 0; +} +#else #ifndef BOOST_NO_INCLASS_MEMBER_INITIALIZATION // @@ -212,5 +216,4 @@ int main() std::cout << "OK\n"; return 0; } - - +#endif