diff --git a/src/core/model/calendar-scheduler.cc b/src/core/model/calendar-scheduler.cc index 4b7832396..ccfe59ce8 100644 --- a/src/core/model/calendar-scheduler.cc +++ b/src/core/model/calendar-scheduler.cc @@ -131,7 +131,11 @@ CalendarScheduler::PeekNext (void) const NS_ASSERT (!IsEmpty ()); uint32_t i = m_lastBucket; uint64_t bucketTop = m_bucketTop; - Scheduler::Event minEvent = { static_cast(0), { static_cast(~0), static_cast(~0)}}; + Scheduler::Event minEvent; + minEvent.impl = 0; + minEvent.key.m_ts = ~0; + minEvent.key.m_uid = ~0; + minEvent.key.m_context = 0; do { if (!m_buckets[i].empty ()) diff --git a/src/core/model/random-variable-stream.cc b/src/core/model/random-variable-stream.cc index 50adda7c8..51ca7f111 100644 --- a/src/core/model/random-variable-stream.cc +++ b/src/core/model/random-variable-stream.cc @@ -1170,8 +1170,6 @@ TriangularRandomVariable::GetTypeId (void) return tid; } TriangularRandomVariable::TriangularRandomVariable () - : - m_mode (0.5) { // m_mean, m_min, and m_max are initialized after constructor by // attributes diff --git a/src/core/model/random-variable-stream.h b/src/core/model/random-variable-stream.h index aeae73839..de178bcee 100644 --- a/src/core/model/random-variable-stream.h +++ b/src/core/model/random-variable-stream.h @@ -1982,10 +1982,6 @@ private: /// The upper bound on values that can be returned by this RNG stream. double m_max; - - /// It's easier to work with the mode internally instead of the - /// mean. They are related by the simple: mean = (min+max+mode)/3. - double m_mode; }; /** diff --git a/src/core/model/system-thread.h b/src/core/model/system-thread.h index 9fc628038..cefda6543 100644 --- a/src/core/model/system-thread.h +++ b/src/core/model/system-thread.h @@ -148,7 +148,6 @@ private: Callback m_callback; pthread_t m_thread; - void * m_ret; #endif };