This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3] Remove an unused variable


Hi,

tested x86-linux, committed.

Paolo.

///////////
2003-10-30  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
	__mod is only assigned, never used its value, remove it.
diff -urN libstdc++-v3-orig/include/bits/locale_facets.tcc libstdc++-v3/include/bits/locale_facets.tcc
--- libstdc++-v3-orig/include/bits/locale_facets.tcc	2003-10-29 17:15:27.000000000 +0100
+++ libstdc++-v3/include/bits/locale_facets.tcc	2003-10-30 09:43:40.000000000 +0100
@@ -1544,13 +1544,9 @@
 	    {
 	      // Verify valid formatting code, attempt to extract.
 	      __c = __format[++__i];
-	      char __mod = 0;
 	      int __mem = 0; 
 	      if (__c == 'E' || __c == 'O')
-		{
-		  __mod = __c;
-		  __c = __format[++__i];
-		}
+		__c = __format[++__i];
 	      switch (__c)
 		{
 		  const char* __cs;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]