Permalink
Browse files

Silence some compiler warnings.

  • Loading branch information...
1 parent 8c400d0 commit ea68012f611fd772ef5a1475f781bf56d9e0f341 @FooBarWidget FooBarWidget committed Mar 16, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 ext/common/Utils/MessagePassing.h
@@ -221,7 +221,7 @@ class MessageBox: public enable_shared_from_this<MessageBox> {
MessagePtr recv(const string &name, unsigned long long *timeout = NULL) {
unique_lock<boost::mutex> l(syncher);
posix_time::ptime deadline;
- unsigned long long beginTime;
+ unsigned long long beginTime = 0; // Shut up compiler warning.
if (timeout != NULL) {
beginTime = SystemTime::getUsec();
deadline = posix_time::microsec_clock::local_time() +
@@ -260,7 +260,7 @@ class MessageBox: public enable_shared_from_this<MessageBox> {
MessagePtr recvAny(const StringCollection &names, unsigned long long *timeout = NULL) {
unique_lock<boost::mutex> l(syncher);
posix_time::ptime deadline;
- unsigned long long beginTime;
+ unsigned long long beginTime = 0; // Shut up compiler warning.
if (timeout != NULL) {
beginTime = SystemTime::getUsec();
deadline = posix_time::microsec_clock::local_time() +

0 comments on commit ea68012

Please sign in to comment.