summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/thread/futures/futures.promise/dtor.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/thread/futures/futures.promise/dtor.pass.cpp')
-rw-r--r--libcxx/test/std/thread/futures/futures.promise/dtor.pass.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/test/std/thread/futures/futures.promise/dtor.pass.cpp b/libcxx/test/std/thread/futures/futures.promise/dtor.pass.cpp
index cd6d0ea7c76..49010a67b39 100644
--- a/libcxx/test/std/thread/futures/futures.promise/dtor.pass.cpp
+++ b/libcxx/test/std/thread/futures/futures.promise/dtor.pass.cpp
@@ -44,6 +44,7 @@ int main()
try
{
T i = f.get();
+ ((void)i); // Prevent unused warning
assert(false);
}
catch (const std::future_error& e)
@@ -75,6 +76,7 @@ int main()
try
{
T i = f.get();
+ ((void)i); // Prevent unused warning
assert(false);
}
catch (const std::future_error& e)
OpenPOWER on IntegriCloud