This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[PATCH, v3] Fix build failure in maintainer-mode
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Sun, 15 Jun 2008 11:17:46 +0200
- Subject: [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
}