diff options
author | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2018-04-12 23:56:12 +0000 |
---|---|---|
committer | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2018-04-12 23:56:12 +0000 |
commit | cf017f0451724eb16411b826df0e05ad7f8ac108 (patch) | |
tree | 30a7fc5933f344000ff3b04765683c8863cd9e09 /libcxx | |
parent | 3ed719bb63e3363db638a35425c0540337a0f831 (diff) | |
download | bcm5719-llvm-cf017f0451724eb16411b826df0e05ad7f8ac108.tar.gz bcm5719-llvm-cf017f0451724eb16411b826df0e05ad7f8ac108.zip |
[libcxx] [test] Fix nodiscard warnings.
MSVC's STL has marked to_bytes/from_bytes as nodiscard.
Fixes D45595.
llvm-svn: 329975
Diffstat (limited to 'libcxx')
-rw-r--r-- | libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ctor_err_string.pass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ctor_err_string.pass.cpp b/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ctor_err_string.pass.cpp index 70204c2fb99..8126531872a 100644 --- a/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ctor_err_string.pass.cpp +++ b/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ctor_err_string.pass.cpp @@ -33,7 +33,7 @@ int main() Myconv myconv; try { - myconv.to_bytes(L"\xDA83"); + (void)myconv.to_bytes(L"\xDA83"); assert(false); } catch (const std::range_error&) @@ -41,7 +41,7 @@ int main() } try { - myconv.from_bytes('\xA5'); + (void)myconv.from_bytes('\xA5'); assert(false); } catch (const std::range_error&) @@ -56,7 +56,7 @@ int main() #ifndef TEST_HAS_NO_EXCEPTIONS try { - myconv.from_bytes('\xA5'); + (void)myconv.from_bytes('\xA5'); assert(false); } catch (const std::range_error&) |