mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
b339bee5d5
commit
c39e1d285c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user