* Another try to fix [boostorg/container] unused parameter warning when compiling with assertions disabled (#56)

This commit is contained in:
Ion Gaztañaga
2017-10-01 10:45:13 +02:00
parent 520dd7cbdd
commit 407aabd77b

View File

@@ -60,7 +60,7 @@ namespace container {
inline void throw_out_of_range(const char* str)
{
const char msg[] = "boost::container out_of_range thrown";
(void)msg;
(void)msg; (void)str;
BOOST_ASSERT_MSG(!msg, str);
std::abort();
}
@@ -68,7 +68,7 @@ namespace container {
inline void throw_length_error(const char* str)
{
const char msg[] = "boost::container length_error thrown";
(void)msg;
(void)msg; (void)str;
BOOST_ASSERT_MSG(!msg, str);
std::abort();
}
@@ -76,7 +76,7 @@ namespace container {
inline void throw_logic_error(const char* str)
{
const char msg[] = "boost::container logic_error thrown";
(void)msg;
(void)msg; (void)str;
BOOST_ASSERT_MSG(!msg, str);
std::abort();
}
@@ -84,7 +84,7 @@ namespace container {
inline void throw_runtime_error(const char* str)
{
const char msg[] = "boost::container runtime_error thrown";
(void)msg;
(void)msg; (void)str;
BOOST_ASSERT_MSG(!msg, str);
std::abort();
}