[cfe-commits] [libcxx] r167492 - /libcxx/trunk/include/locale
Howard Hinnant
hhinnant at apple.com
Tue Nov 6 13:48:33 PST 2012
Author: hhinnant
Date: Tue Nov 6 15:48:33 2012
New Revision: 167492
URL: http://llvm.org/viewvc/llvm-project?rev=167492&view=rev
Log:
Dimitry Andric: Silence some warnings in <locale>.
Modified:
libcxx/trunk/include/locale
Modified: libcxx/trunk/include/locale
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/locale?rev=167492&r1=167491&r2=167492&view=diff
==============================================================================
--- libcxx/trunk/include/locale (original)
+++ libcxx/trunk/include/locale Tue Nov 6 15:48:33 2012
@@ -2876,9 +2876,9 @@
virtual string_type do_negative_sign() const {return string_type(1, '-');}
virtual int do_frac_digits() const {return 0;}
virtual pattern do_pos_format() const
- {pattern __p = {symbol, sign, none, value}; return __p;}
+ {pattern __p = {{symbol, sign, none, value}}; return __p;}
virtual pattern do_neg_format() const
- {pattern __p = {symbol, sign, none, value}; return __p;}
+ {pattern __p = {{symbol, sign, none, value}}; return __p;}
};
template <class _CharT, bool _International>
@@ -3192,7 +3192,6 @@
bool __sb = __flags & ios_base::showbase;
if (__sb || __more_needed)
{
- ios_base::iostate __et = ios_base::goodbit;
typename string_type::const_iterator __sym_space_end = __sym.begin();
if (__p > 0 && (__pat.field[__p - 1] == money_base::none ||
__pat.field[__p - 1] == money_base::space)) {
More information about the cfe-commits
mailing list