This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

[Patch] Avoid 4 unused parameter warnings


Hi,

the below seems obviously needed to fix warning regressions
introduced by my recent fix for libstdc++/9168 :(

Tested x86-linux.

In nobody complains, I will apply it soonish.

Paolo.

/////////////////
2003-01-06  Paolo Carlini  <pcarlini@unitus.it>

	* src/codecvt.cc
	(codecvt<char, char, mbstate_t>::do_in, do_out):
	Tweak parameters to avoid unused parameter warnings.
diff -urN libstdc++-v3-orig/src/codecvt.cc libstdc++-v3/src/codecvt.cc
--- libstdc++-v3-orig/src/codecvt.cc	2003-01-05 09:04:17.000000000 +0100
+++ libstdc++-v3/src/codecvt.cc	2003-01-06 19:32:38.000000000 +0100
@@ -60,8 +60,8 @@
   codecvt_base::result
   codecvt<char, char, mbstate_t>::
   do_out(state_type&, const intern_type* __from, 
-	 const intern_type* __from_end, const intern_type*& __from_next,
-	 extern_type* __to, extern_type* __to_end, 
+	 const intern_type*, const intern_type*& __from_next,
+	 extern_type* __to, extern_type*, 
 	 extern_type*& __to_next) const
   { 
     // _GLIBCPP_RESOLVE_LIB_DEFECTS
@@ -84,8 +84,8 @@
   codecvt_base::result
   codecvt<char, char, mbstate_t>::
   do_in(state_type&, const extern_type* __from, 
-	const extern_type* __from_end, const extern_type*& __from_next,
-	intern_type* __to, intern_type* __to_end, 
+	const extern_type*, const extern_type*& __from_next,
+	intern_type* __to, intern_type*, 
 	intern_type*& __to_next) const
   {
     // _GLIBCPP_RESOLVE_LIB_DEFECTS

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