Bug 1884759 - Fix unused variable warning on some builds.

MANUAL PUSH: Trivial fix for nightly-as-release builds CLOSED TREE
This commit is contained in:
Emilio Cobos Álvarez 2024-03-13 13:50:03 +01:00
parent d885a09053
commit 0c2b607ac2

View File

@ -474,7 +474,10 @@ class StyleSheet final : public nsICSSLoaderObserver, public nsWrapperCache {
// Blocks/Unblocks resolution of parse promise
void BlockParsePromise() {
uint32_t count = ++mAsyncParseBlockers;
#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED
uint32_t count =
#endif
++mAsyncParseBlockers;
MOZ_DIAGNOSTIC_ASSERT(count);
}