diff options
Diffstat (limited to 'test/std/utilities/variant/variant.get/get_type.pass.cpp')
-rw-r--r-- | test/std/utilities/variant/variant.get/get_type.pass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/std/utilities/variant/variant.get/get_type.pass.cpp b/test/std/utilities/variant/variant.get/get_type.pass.cpp index 63221f69c..5d9213ed0 100644 --- a/test/std/utilities/variant/variant.get/get_type.pass.cpp +++ b/test/std/utilities/variant/variant.get/get_type.pass.cpp @@ -259,7 +259,7 @@ void test_throws_for_all_value_categories() { auto test = [](auto idx, auto &&v) { using Idx = decltype(idx); try { - std::get<typename Idx::type>(std::forward<decltype(v)>(v)); + (void)std::get<typename Idx::type>(std::forward<decltype(v)>(v)); } catch (const std::bad_variant_access &) { return true; } catch (...) { /* ... */ |