Author: stl_msft Date: Thu Apr 12 16:56:14 2018 New Revision: 329976 URL: http://llvm.org/viewvc/llvm-project?rev=329976&view=rev Log: [libcxx] [test] Silence MSVC warning C4146.
This test code triggers the MSVC warning: "unary minus operator applied to unsigned type, result still unsigned" Although it would be possible to change the test code to avoid this warning, I have chosen to simply silence it. Fixes D45594. Modified: libcxx/trunk/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_neg_one.pass.cpp Modified: libcxx/trunk/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_neg_one.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_neg_one.pass.cpp?rev=329976&r1=329975&r2=329976&view=diff ============================================================================== --- libcxx/trunk/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_neg_one.pass.cpp (original) +++ libcxx/trunk/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/test_neg_one.pass.cpp Thu Apr 12 16:56:14 2018 @@ -22,6 +22,10 @@ #include <iostream> #include "test_iterators.h" +#ifdef _MSC_VER +#pragma warning(disable: 4146) // unary minus operator applied to unsigned type, result still unsigned +#endif + typedef std::num_get<char, input_iterator<const char*> > F; class my_facet _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits