summaryrefslogtreecommitdiffstats
path: root/libcxx/include/stdexcept
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-12-23 23:37:52 +0000
committerEric Fiselier <eric@efcs.ca>2016-12-23 23:37:52 +0000
commitfd838227411f3ce1fa348f1d334266231bbcc84d (patch)
tree204de9a3dad8b79d83bba224d8f6d4775169483f /libcxx/include/stdexcept
parent16166a4d71fca27f454a0837465143700dd41e98 (diff)
downloadbcm5719-llvm-fd838227411f3ce1fa348f1d334266231bbcc84d.tar.gz
bcm5719-llvm-fd838227411f3ce1fa348f1d334266231bbcc84d.zip
Fix unused parameters and variables
llvm-svn: 290459
Diffstat (limited to 'libcxx/include/stdexcept')
-rw-r--r--libcxx/include/stdexcept24
1 files changed, 16 insertions, 8 deletions
diff --git a/libcxx/include/stdexcept b/libcxx/include/stdexcept
index b9dd2853f28..d501d091608 100644
--- a/libcxx/include/stdexcept
+++ b/libcxx/include/stdexcept
@@ -191,7 +191,8 @@ void __throw_logic_error(const char*__msg)
#ifndef _LIBCPP_NO_EXCEPTIONS
throw logic_error(__msg);
#else
- _VSTD::abort();
+ ((void)__msg);
+ _VSTD::abort();
#endif
}
@@ -201,7 +202,8 @@ void __throw_domain_error(const char*__msg)
#ifndef _LIBCPP_NO_EXCEPTIONS
throw domain_error(__msg);
#else
- _VSTD::abort();
+ ((void)__msg);
+ _VSTD::abort();
#endif
}
@@ -211,7 +213,8 @@ void __throw_invalid_argument(const char*__msg)
#ifndef _LIBCPP_NO_EXCEPTIONS
throw invalid_argument(__msg);
#else
- _VSTD::abort();
+ ((void)__msg);
+ _VSTD::abort();
#endif
}
@@ -221,7 +224,8 @@ void __throw_length_error(const char*__msg)
#ifndef _LIBCPP_NO_EXCEPTIONS
throw length_error(__msg);
#else
- _VSTD::abort();
+ ((void)__msg);
+ _VSTD::abort();
#endif
}
@@ -231,7 +235,8 @@ void __throw_out_of_range(const char*__msg)
#ifndef _LIBCPP_NO_EXCEPTIONS
throw out_of_range(__msg);
#else
- _VSTD::abort();
+ ((void)__msg);
+ _VSTD::abort();
#endif
}
@@ -241,7 +246,8 @@ void __throw_range_error(const char*__msg)
#ifndef _LIBCPP_NO_EXCEPTIONS
throw range_error(__msg);
#else
- _VSTD::abort();
+ ((void)__msg);
+ _VSTD::abort();
#endif
}
@@ -251,7 +257,8 @@ void __throw_overflow_error(const char*__msg)
#ifndef _LIBCPP_NO_EXCEPTIONS
throw overflow_error(__msg);
#else
- _VSTD::abort();
+ ((void)__msg);
+ _VSTD::abort();
#endif
}
@@ -261,7 +268,8 @@ void __throw_underflow_error(const char*__msg)
#ifndef _LIBCPP_NO_EXCEPTIONS
throw underflow_error(__msg);
#else
- _VSTD::abort();
+ ((void)__msg);
+ _VSTD::abort();
#endif
}
OpenPOWER on IntegriCloud