Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 8e53e39

Browse files
committed
Bug 854085 - Fix unused-but-set-variable from ASSERT_ON_THREAD macro in media/mtransport/runnable_utils.h. r=jesup
1 parent fe75574 commit 8e53e39

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

media/mtransport/runnable_utils.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ static inline nsresult RUN_ON_THREAD(nsIEventTarget *thread, nsIRunnable *runnab
5454
return runnable_ref->Run();
5555
}
5656

57+
#ifdef MOZ_DEBUG
5758
#define ASSERT_ON_THREAD(t) do { \
5859
if (t) { \
5960
bool on; \
@@ -64,6 +65,9 @@ static inline nsresult RUN_ON_THREAD(nsIEventTarget *thread, nsIRunnable *runnab
6465
} \
6566
} while(0)
6667
}
68+
#else
69+
#define ASSERT_ON_THREAD(t)
70+
#endif
6771

6872
#endif
6973

0 commit comments

Comments
 (0)