|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52889 - trunk/libs/graph_parallel/src
From: jewillco_at_[hidden]
Date: 2009-05-10 21:15:41
Author: jewillco
Date: 2009-05-10 21:15:41 EDT (Sun, 10 May 2009)
New Revision: 52889
URL: http://svn.boost.org/trac/boost/changeset/52889
Log:
Fixed uninitialized variable warning
Text files modified:
trunk/libs/graph_parallel/src/mpi_process_group.cpp | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
Modified: trunk/libs/graph_parallel/src/mpi_process_group.cpp
==============================================================================
--- trunk/libs/graph_parallel/src/mpi_process_group.cpp (original)
+++ trunk/libs/graph_parallel/src/mpi_process_group.cpp 2009-05-10 21:15:41 EDT (Sun, 10 May 2009)
@@ -553,9 +553,12 @@
tag = msg_large_batch;
#endif
- int result = MPI_Isend(const_cast<void*>(oa.address()), oa.size(),
- MPI_PACKED, dest, tag, impl_->comm,
- &req.request);
+#ifndef NDEBUG // Prevent uninitialized variable warning with NDEBUG is on
+ int result =
+#endif // !NDEBUG
+ MPI_Isend(const_cast<void*>(oa.address()), oa.size(),
+ MPI_PACKED, dest, tag, impl_->comm,
+ &req.request);
assert(result == MPI_SUCCESS);
impl_->max_sent = (std::max)(impl_->max_sent,impl_->sent_batches.size());
#ifdef NO_ISEND_BATCHES
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk