summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/localization
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-05-02 19:15:48 +0000
committerEric Fiselier <eric@efcs.ca>2016-05-02 19:15:48 +0000
commitfb42f4c44adc1e2ac25c1305e77d53e735012b77 (patch)
tree1b7284c381b8626e94578527a76c00071d9f9bce /libcxx/test/std/localization
parent9d91336a839d291ea52e91401e9bd92f4dfc5b5a (diff)
downloadbcm5719-llvm-fb42f4c44adc1e2ac25c1305e77d53e735012b77.tar.gz
bcm5719-llvm-fb42f4c44adc1e2ac25c1305e77d53e735012b77.zip
Void cast runtime-unused variables. Patch from STL@microsoft.com
llvm-svn: 268284
Diffstat (limited to 'libcxx/test/std/localization')
-rw-r--r--libcxx/test/std/localization/c.locales/clocale.pass.cpp1
-rw-r--r--libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_long_double.pass.cpp3
2 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/localization/c.locales/clocale.pass.cpp b/libcxx/test/std/localization/c.locales/clocale.pass.cpp
index a90725bfa36..534213495cd 100644
--- a/libcxx/test/std/localization/c.locales/clocale.pass.cpp
+++ b/libcxx/test/std/localization/c.locales/clocale.pass.cpp
@@ -47,6 +47,7 @@
int main()
{
std::lconv lc;
+ ((void)lc); // Prevent unused warning
#ifndef _LIBCPP_HAS_NO_THREAD_UNSAFE_C_FUNCTIONS
static_assert((std::is_same<decltype(std::setlocale(0, "")), char*>::value), "");
#endif
diff --git a/libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_long_double.pass.cpp b/libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_long_double.pass.cpp
index ec5874b4413..a52c2c7c153 100644
--- a/libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_long_double.pass.cpp
+++ b/libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_long_double.pass.cpp
@@ -24415,7 +24415,6 @@ void test11()
void test12()
{
- char str[200];
output_iterator<char*> iter;
std::locale lc = std::locale::classic();
std::locale lg(lc, new my_numpunct);
@@ -24423,6 +24422,7 @@ void test12()
// This test is failing on FreeBSD, possibly due to different representations
// of the floating point numbers.
const my_facet f(1);
+ char str[200];
{
long double v = 1234567890.125;
std::ios ios(0);
@@ -26221,7 +26221,6 @@ int main()
test10();
test11();
test12();
- char str[200];
output_iterator<char*> iter;
std::locale lc = std::locale::classic();
std::locale lg(lc, new my_numpunct);
OpenPOWER on IntegriCloud