Author: marshall Date: Tue Sep 15 09:46:03 2015 New Revision: 247695 URL: http://llvm.org/viewvc/llvm-project?rev=247695&view=rev Log: Change initialization of mbstate_t objects in tests from '= {0}' to '= {}', which does the same thing, w/o having clang and gcc warn with -Wall.
Modified: libcxx/trunk/test/std/depr/depr.c.headers/wchar_h.pass.cpp libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_in.pass.cpp libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_length.pass.cpp libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_out.pass.cpp libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_unshift.pass.cpp libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_in.pass.cpp libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_length.pass.cpp libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_out.pass.cpp libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_unshift.pass.cpp libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_in.pass.cpp libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_length.pass.cpp libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_out.pass.cpp libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_unshift.pass.cpp libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/utf_sanity_check.pass.cpp libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_in.pass.cpp libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_length.pass.cpp libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_out.pass.cpp libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_unshift.pass.cpp libcxx/trunk/test/std/strings/c.strings/cwchar.pass.cpp Modified: libcxx/trunk/test/std/depr/depr.c.headers/wchar_h.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/depr/depr.c.headers/wchar_h.pass.cpp?rev=247695&r1=247694&r2=247695&view=diff ============================================================================== --- libcxx/trunk/test/std/depr/depr.c.headers/wchar_h.pass.cpp (original) +++ libcxx/trunk/test/std/depr/depr.c.headers/wchar_h.pass.cpp Tue Sep 15 09:46:03 2015 @@ -34,7 +34,7 @@ int main() { - mbstate_t mb = {0}; + mbstate_t mb = {}; size_t s = 0; tm *tm = 0; wint_t w = 0; Modified: libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_in.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_in.pass.cpp?rev=247695&r1=247694&r2=247695&view=diff ============================================================================== --- libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_in.pass.cpp (original) +++ libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_in.pass.cpp Tue Sep 15 09:46:03 2015 @@ -28,7 +28,7 @@ int main() const char from[] = "some text"; F::intern_type to[9]; const F& f = std::use_facet<F>(l); - std::mbstate_t mbs = {0}; + std::mbstate_t mbs = {}; const char* from_next = 0; F::intern_type* to_next = 0; assert(f.in(mbs, from, from + 9, from_next, Modified: libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_length.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_length.pass.cpp?rev=247695&r1=247694&r2=247695&view=diff ============================================================================== --- libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_length.pass.cpp (original) +++ libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_length.pass.cpp Tue Sep 15 09:46:03 2015 @@ -22,7 +22,7 @@ int main() { std::locale l = std::locale::classic(); const F& f = std::use_facet<F>(l); - std::mbstate_t mbs = {0}; + std::mbstate_t mbs = {}; const char from[] = "some text"; assert(f.length(mbs, from, from+10, 0) == 0); assert(f.length(mbs, from, from+10, 8) == 8); Modified: libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_out.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_out.pass.cpp?rev=247695&r1=247694&r2=247695&view=diff ============================================================================== --- libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_out.pass.cpp (original) +++ libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_out.pass.cpp Tue Sep 15 09:46:03 2015 @@ -31,7 +31,7 @@ int main() { F::intern_type from[9] = {'s', 'o', 'm', 'e', ' ', 't', 'e', 'x', 't'}; char to[9] = {0}; - std::mbstate_t mbs = {0}; + std::mbstate_t mbs = {}; const F::intern_type* from_next = 0; char* to_next = 0; F::result r = f.out(mbs, from, from + 9, from_next, Modified: libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_unshift.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_unshift.pass.cpp?rev=247695&r1=247694&r2=247695&view=diff ============================================================================== --- libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_unshift.pass.cpp (original) +++ libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_unshift.pass.cpp Tue Sep 15 09:46:03 2015 @@ -26,7 +26,7 @@ int main() std::locale l = std::locale::classic(); std::vector<char> to(3); const F& f = std::use_facet<F>(l); - std::mbstate_t mbs = {0}; + std::mbstate_t mbs = {}; char* to_next = 0; assert(f.unshift(mbs, to.data(), to.data() + to.size(), to_next) == F::noconv); assert(to_next == to.data()); Modified: libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_in.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_in.pass.cpp?rev=247695&r1=247694&r2=247695&view=diff ============================================================================== --- libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_in.pass.cpp (original) +++ libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_in.pass.cpp Tue Sep 15 09:46:03 2015 @@ -28,7 +28,7 @@ int main() const char from[] = "some text"; F::intern_type to[9]; const F& f = std::use_facet<F>(l); - std::mbstate_t mbs = {0}; + std::mbstate_t mbs = {}; const char* from_next = 0; F::intern_type* to_next = 0; assert(f.in(mbs, from, from + 9, from_next, Modified: libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_length.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_length.pass.cpp?rev=247695&r1=247694&r2=247695&view=diff ============================================================================== --- libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_length.pass.cpp (original) +++ libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_length.pass.cpp Tue Sep 15 09:46:03 2015 @@ -22,7 +22,7 @@ int main() { std::locale l = std::locale::classic(); const F& f = std::use_facet<F>(l); - std::mbstate_t mbs = {0}; + std::mbstate_t mbs = {}; const char from[] = "some text"; assert(f.length(mbs, from, from+10, 0) == 0); assert(f.length(mbs, from, from+10, 8) == 8); Modified: libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_out.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_out.pass.cpp?rev=247695&r1=247694&r2=247695&view=diff ============================================================================== --- libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_out.pass.cpp (original) +++ libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_out.pass.cpp Tue Sep 15 09:46:03 2015 @@ -31,7 +31,7 @@ int main() { F::intern_type from[9] = {'s', 'o', 'm', 'e', ' ', 't', 'e', 'x', 't'}; char to[9] = {0}; - std::mbstate_t mbs = {0}; + std::mbstate_t mbs = {}; const F::intern_type* from_next = 0; char* to_next = 0; F::result r = f.out(mbs, from, from + 9, from_next, Modified: libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_unshift.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_unshift.pass.cpp?rev=247695&r1=247694&r2=247695&view=diff ============================================================================== --- libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_unshift.pass.cpp (original) +++ libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_unshift.pass.cpp Tue Sep 15 09:46:03 2015 @@ -26,7 +26,7 @@ int main() std::locale l = std::locale::classic(); std::vector<char> to(3); const F& f = std::use_facet<F>(l); - std::mbstate_t mbs = {0}; + std::mbstate_t mbs = {}; char* to_next = 0; assert(f.unshift(mbs, to.data(), to.data() + to.size(), to_next) == F::noconv); assert(to_next == to.data()); Modified: libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_in.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_in.pass.cpp?rev=247695&r1=247694&r2=247695&view=diff ============================================================================== --- libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_in.pass.cpp (original) +++ libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_in.pass.cpp Tue Sep 15 09:46:03 2015 @@ -28,7 +28,7 @@ int main() const std::basic_string<F::intern_type> from("some text"); std::vector<char> to(from.size()); const F& f = std::use_facet<F>(l); - std::mbstate_t mbs = {0}; + std::mbstate_t mbs = {}; const char* from_next = 0; char* to_next = 0; assert(f.in(mbs, from.data(), from.data() + from.size(), from_next, Modified: libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_length.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_length.pass.cpp?rev=247695&r1=247694&r2=247695&view=diff ============================================================================== --- libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_length.pass.cpp (original) +++ libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_length.pass.cpp Tue Sep 15 09:46:03 2015 @@ -22,7 +22,7 @@ int main() { std::locale l = std::locale::classic(); const F& f = std::use_facet<F>(l); - std::mbstate_t mbs = {0}; + std::mbstate_t mbs = {}; const char from[10]= {0}; assert(f.length(mbs, from, from+10, 0) == 0); assert(f.length(mbs, from, from+10, 9) == 9); Modified: libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_out.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_out.pass.cpp?rev=247695&r1=247694&r2=247695&view=diff ============================================================================== --- libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_out.pass.cpp (original) +++ libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_out.pass.cpp Tue Sep 15 09:46:03 2015 @@ -28,7 +28,7 @@ int main() const std::basic_string<F::intern_type> from("some text"); std::vector<char> to(from.size()); const F& f = std::use_facet<F>(l); - std::mbstate_t mbs = {0}; + std::mbstate_t mbs = {}; const char* from_next = 0; char* to_next = 0; assert(f.out(mbs, from.data(), from.data() + from.size(), from_next, Modified: libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_unshift.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_unshift.pass.cpp?rev=247695&r1=247694&r2=247695&view=diff ============================================================================== --- libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_unshift.pass.cpp (original) +++ libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char_unshift.pass.cpp Tue Sep 15 09:46:03 2015 @@ -26,7 +26,7 @@ int main() std::locale l = std::locale::classic(); std::vector<char> to(3); const F& f = std::use_facet<F>(l); - std::mbstate_t mbs = {0}; + std::mbstate_t mbs = {}; char* to_next = 0; assert(f.unshift(mbs, to.data(), to.data() + to.size(), to_next) == F::noconv); assert(to_next == to.data()); Modified: libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/utf_sanity_check.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/utf_sanity_check.pass.cpp?rev=247695&r1=247694&r2=247695&view=diff ============================================================================== --- libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/utf_sanity_check.pass.cpp (original) +++ libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/utf_sanity_check.pass.cpp Tue Sep 15 09:46:03 2015 @@ -30,7 +30,7 @@ int main() const F32_8& f32_8 = std::use_facet<F32_8>(std::locale::classic()); const F32_16& f32_16 = std::use_facet<F32_16>(l); const F16_8& f16_8 = std::use_facet<F16_8>(std::locale::classic()); - std::mbstate_t mbs = {0}; + std::mbstate_t mbs = {}; F32_8::intern_type* c32p; F16_8::intern_type* c16p; F32_8::extern_type* c8p; Modified: libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_in.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_in.pass.cpp?rev=247695&r1=247694&r2=247695&view=diff ============================================================================== --- libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_in.pass.cpp (original) +++ libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_in.pass.cpp Tue Sep 15 09:46:03 2015 @@ -29,7 +29,7 @@ int main() const std::basic_string<F::intern_type> expected(from.begin(), from.end()); std::basic_string<F::intern_type> to(from.size(), F::intern_type()); const F& f = std::use_facet<F>(l); - std::mbstate_t mbs = {0}; + std::mbstate_t mbs = {}; const F::extern_type* from_next = 0; F::intern_type* to_next = 0; F::result r = f.in(mbs, from.data(), from.data() + from.size(), from_next, Modified: libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_length.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_length.pass.cpp?rev=247695&r1=247694&r2=247695&view=diff ============================================================================== --- libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_length.pass.cpp (original) +++ libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_length.pass.cpp Tue Sep 15 09:46:03 2015 @@ -22,7 +22,7 @@ int main() { std::locale l = std::locale::classic(); const F& f = std::use_facet<F>(l); - std::mbstate_t mbs = {0}; + std::mbstate_t mbs = {}; const char* from = "123467890"; assert(f.length(mbs, from, from+10, 0) == 0); assert(f.length(mbs, from, from+10, 9) == 9); Modified: libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_out.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_out.pass.cpp?rev=247695&r1=247694&r2=247695&view=diff ============================================================================== --- libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_out.pass.cpp (original) +++ libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_out.pass.cpp Tue Sep 15 09:46:03 2015 @@ -29,7 +29,7 @@ int main() { const std::basic_string<F::intern_type> from(L"some text"); std::vector<char> to(from.size()+1); - std::mbstate_t mbs = {0}; + std::mbstate_t mbs = {}; const F::intern_type* from_next = 0; char* to_next = 0; F::result r = f.out(mbs, from.data(), from.data() + from.size(), from_next, @@ -43,7 +43,7 @@ int main() std::basic_string<F::intern_type> from(L"some text"); from[4] = '\0'; std::vector<char> to(from.size()+1); - std::mbstate_t mbs = {0}; + std::mbstate_t mbs = {}; const F::intern_type* from_next = 0; char* to_next = 0; F::result r = f.out(mbs, from.data(), from.data() + from.size(), from_next, @@ -56,7 +56,7 @@ int main() { std::basic_string<F::intern_type> from(L"some text"); std::vector<char> to(from.size()-1); - std::mbstate_t mbs = {0}; + std::mbstate_t mbs = {}; const F::intern_type* from_next = 0; char* to_next = 0; F::result r = f.out(mbs, from.data(), from.data() + from.size(), from_next, Modified: libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_unshift.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_unshift.pass.cpp?rev=247695&r1=247694&r2=247695&view=diff ============================================================================== --- libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_unshift.pass.cpp (original) +++ libcxx/trunk/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_unshift.pass.cpp Tue Sep 15 09:46:03 2015 @@ -28,7 +28,7 @@ int main() std::locale l = std::locale::classic(); std::vector<F::extern_type> to(3); const F& f = std::use_facet<F>(l); - std::mbstate_t mbs = {0}; + std::mbstate_t mbs = {}; F::extern_type* to_next = 0; assert(f.unshift(mbs, to.data(), to.data() + to.size(), to_next) == F::ok); assert(to_next == to.data()); Modified: libcxx/trunk/test/std/strings/c.strings/cwchar.pass.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/strings/c.strings/cwchar.pass.cpp?rev=247695&r1=247694&r2=247695&view=diff ============================================================================== --- libcxx/trunk/test/std/strings/c.strings/cwchar.pass.cpp (original) +++ libcxx/trunk/test/std/strings/c.strings/cwchar.pass.cpp Tue Sep 15 09:46:03 2015 @@ -30,7 +30,7 @@ int main() { - std::mbstate_t mb = {0}; + std::mbstate_t mb = {}; std::size_t s = 0; std::tm *tm = 0; std::wint_t w = 0; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits