diff --git a/parallel/ddd/xfer/cmds.cc b/parallel/ddd/xfer/cmds.cc
index 8791aab576502c3e723047b950247e6e7ef4a1ea..06d2cc626fc8ae4c2191b56bd31bd158f3208226 100644
--- a/parallel/ddd/xfer/cmds.cc
+++ b/parallel/ddd/xfer/cmds.cc
@@ -380,7 +380,8 @@ DDD_RET DDD_XferEnd(DDD::DDDContext& context)
   XIModCpl    **arrayXIModCpl       = NULL;
   int remXIModCpl;
   XIAddCpl    **arrayXIAddCpl       = NULL;
-  int obsolete, nRecvMsgs, nSendMsgs;
+  int obsolete, nRecvMsgs;
+  DUNE_UNUSED int nSendMsgs;
   XFERMSG     *sendMsgs=NULL, *sm=NULL;
   LC_MSGHANDLE *recvMsgs            = NULL;
   std::vector<DDD_HDR> localCplObjs;