This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] fix locale_facets.tcc __pad lossage
- From: Nathan Myers <ncm-nospam at cantrip dot org>
- To: libstdc++ at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 21 Aug 2003 13:07:35 -0700
- Subject: [PATCH] fix locale_facets.tcc __pad lossage
I beliieve this has the same effect as both Benjamin's formulation
and Paolo's previous code, but without the compiler warning.
If this is OK, would somebody please apply it for me?
Thanks,
Nathan Myers
ncm-nospam@cantrip.org
2003-08-21 Nathan Myers <ncm@cantrip.org>
* include/bits/locale_facets.tcc (__pad): delete dead code.
Index: include/bits/locale_facets.tcc
===================================================================
RCS file: /cvsroot/gcc/gcc/libstdc++-v3/include/bits/locale_facets.tcc,v
retrieving revision 1.110
diff -u -r1.110 locale_facets.tcc
--- include/bits/locale_facets.tcc 18 Jul 2003 02:27:15 -0000 1.110
+++ include/bits/locale_facets.tcc 21 Aug 2003 19:47:14 -0000
@@ -2238,7 +2238,7 @@
}
else if (__testsign)
{
- _Traits::eq((__news[0] = __olds[0]), __plus) ? __plus : __minus;
+ __news[0] = __olds[0];
++__mod;
++__news;
__beg = __pads;