diff options
author | Eric Milkie <milkie@10gen.com> | 2012-01-20 16:33:42 -0500 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2012-01-20 16:35:56 -0500 |
commit | 30163a270db97c479a843a8c3e8ac1b644ad759f (patch) | |
tree | 4a89620dc0a87567d17c0aebe56b3cba5229c83c /src/mongo/server.h | |
parent | 93c545704be4e817f42d919bd33d476849f6d843 (diff) | |
download | mongo-30163a270db97c479a843a8c3e8ac1b644ad759f.tar.gz |
turn on boost asserts for all compilation
The legacy linux build has been failing in release mode because disabling boost asserts results in an unused variable which triggers a warning, and we have warnings-as-errors turned on in that build.
To avoid the warning, and to improve code in general, I have turned on boost asserts for all compilation. This means if you hit a boost assert, it will call mongo::log() with the message. In debug mode,
the program will subsequently abort.
Diffstat (limited to 'src/mongo/server.h')
-rw-r--r-- | src/mongo/server.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mongo/server.h b/src/mongo/server.h index 2afa6356461..bd67fb8d26a 100644 --- a/src/mongo/server.h +++ b/src/mongo/server.h @@ -12,11 +12,7 @@ # error this file is for mongo server programs not client lib #endif -#if defined(_DEBUG) -# define BOOST_ENABLE_ASSERT_HANDLER 1 -#else -# define BOOST_DISABLE_ASSERTS 1 -#endif +#define BOOST_ENABLE_ASSERT_HANDLER 1 #include <map> #include <vector> |