Bug 1326423 - Fix assertion for optimized build. r?baku draft
authorWei-Cheng Pan <wpan@mozilla.com>
Wed, 04 Jan 2017 14:40:56 +0800
changeset 455842 3f788f3ca1e4524ac91406cf500910ff49cc822f
parent 455841 236b90305efbbc79f66ca1453be47f3688b26c7a
child 541053 b3cfab12c3e554393c714d9fb68e62ad8489e844
push id40306
push userbmo:wpan@mozilla.com
push dateWed, 04 Jan 2017 10:17:25 +0000
reviewersbaku
bugs1326423
milestone52.0a2
Bug 1326423 - Fix assertion for optimized build. r?baku MozReview-Commit-ID: By3J4RLnJHn
netwerk/ipc/NeckoParent.cpp
--- a/netwerk/ipc/NeckoParent.cpp
+++ b/netwerk/ipc/NeckoParent.cpp
@@ -485,17 +485,18 @@ NeckoParent::DeallocPDataChannelParent(P
   return true;
 }
 
 bool
 NeckoParent::RecvPDataChannelConstructor(PDataChannelParent* actor,
                                          const uint32_t& channelId)
 {
   DataChannelParent* p = static_cast<DataChannelParent*>(actor);
-  MOZ_DIAGNOSTIC_ASSERT(p->Init(channelId));
+  DebugOnly<bool> rv = p->Init(channelId);
+  MOZ_ASSERT(rv);
   return true;
 }
 
 PRtspControllerParent*
 NeckoParent::AllocPRtspControllerParent()
 {
 #ifdef NECKO_PROTOCOL_rtsp
   RtspControllerParent* p = new RtspControllerParent();