Bug 854085 - Fix unused-but-set-variable from ASSERT_ON_THREAD macro in media/mtransport/runnable_utils.h. r=jesup

This commit is contained in:
Mike Hommey 2013-03-26 11:07:02 +01:00
parent b339bee5d5
commit c39e1d285c

View File

@ -54,6 +54,7 @@ static inline nsresult RUN_ON_THREAD(nsIEventTarget *thread, nsIRunnable *runnab
return runnable_ref->Run();
}
#ifdef MOZ_DEBUG
#define ASSERT_ON_THREAD(t) do { \
if (t) { \
bool on; \
@ -63,7 +64,10 @@ static inline nsresult RUN_ON_THREAD(nsIEventTarget *thread, nsIRunnable *runnab
MOZ_ASSERT(on); \
} \
} while(0)
}
#else
#define ASSERT_ON_THREAD(t)
#endif
} /* namespace mozilla */
#endif