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, v3] Fix build failure in maintainer-mode


In libstdc++-v3/, --enable-maintainer-mode (among others) implies
-Werror, which fails due to the warning about this unused variable.

OK for trunk?  Bootstrapped, regtested i686-pc-linux-gnu.

Thanks,
Ralf

libstdc++-v3/ChangeLog:
2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	* src/condition_variable.cc (~condition_variable): Drop unused
	variable.

diff --git a/libstdc++-v3/src/condition_variable.cc b/libstdc++-v3/src/condition_variable.cc
index 74541e9..c3caa59 100644
--- a/libstdc++-v3/src/condition_variable.cc
+++ b/libstdc++-v3/src/condition_variable.cc
@@ -49,7 +49,7 @@ namespace std
   {
 #if __GTHREAD_HAS_COND
     // XXX no thread blocked
-    int __e = pthread_cond_destroy(&_M_cond);
+    /* int __e = */ pthread_cond_destroy(&_M_cond);
     // if __e == EBUSY then blocked
 #endif
   }


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