[cfe-commits] [libcxx] r150964 - /libcxx/trunk/src/locale.cpp
Benjamin Kramer
benny.kra at googlemail.com
Mon Feb 20 09:06:20 PST 2012
On 20.02.2012, at 17:51, Howard Hinnant wrote:
> Author: hhinnant
> Date: Mon Feb 20 10:51:43 2012
> New Revision: 150964
>
> URL: http://llvm.org/viewvc/llvm-project?rev=150964&view=rev
> Log:
> Silence -Wmissing-field-initializers a little higher in the source.
clang won't warn if it sees the more idiomatic
tm t = {};
- Ben
>
> Modified:
> libcxx/trunk/src/locale.cpp
>
> Modified: libcxx/trunk/src/locale.cpp
> URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/locale.cpp?rev=150964&r1=150963&r2=150964&view=diff
> ==============================================================================
> --- libcxx/trunk/src/locale.cpp (original)
> +++ libcxx/trunk/src/locale.cpp Mon Feb 20 10:51:43 2012
> @@ -4547,6 +4547,8 @@
> freelocale(__loc_);
> }
>
> +#pragma clang diagnostic ignored "-Wmissing-field-initializers"
> +
> template <>
> string
> __time_get_storage<char>::__analyze(char fmt, const ctype<char>& ct)
> @@ -4692,7 +4694,6 @@
> }
>
> #pragma clang diagnostic ignored "-Wmissing-braces"
> -#pragma clang diagnostic ignored "-Wmissing-field-initializers"
>
> template <>
> wstring
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list