Commit 0b9a8d0a authored by Martin Marinov's avatar Martin Marinov
Browse files

Fix errors when building w/o DEB_ON and TEST_ON

parent c6fc8052
......@@ -36,7 +36,7 @@ bool variable(const char* const _vrbl_name, std::string& _vrbl)
LocaleSession::LocaleSession(const char* const _ssn_lcle)
{
lcl_bckp_ = std::locale::global(std::locale(_ssn_lcle));
char* lcle = ::setlocale(LC_ALL, NULL);
DEB_only(char* lcle = )::setlocale(LC_ALL, NULL);
DEB_error_if(lcle == NULL,
"std::locale::global() failed to set " << _ssn_lcle);
DEB_error_if(lcle != NULL && strcmp(lcle, _ssn_lcle) != 0,
......
......@@ -60,7 +60,8 @@ struct ErrorExtT : public ErrorT, public ThrowInfo
#define THROW_ERROR_MODULE(MODULE, INDEX) \
THROW_ERROR_MODULE_VAR(MODULE, MODULE::Error::INDEX)
#define THROW_ERROR_DEB_MODULE(MODULE, EXPR) THROW_ERROR_MODULE(MODULE, TODO)
#define THROW_ERROR_DEB_MODULE(MODULE, INDEX, EXPR) \
THROW_ERROR_MODULE(MODULE, INDEX)
#endif// DEB_ON
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment