Build failed after uplift due to -Werror=unused-but-set-variable + MOZ_DIAGNOSTIC_ASSERT




3 years ago
3 years ago


(Reporter: sylvestre, Unassigned)


Firefox Tracking Flags

(Not tracked)




3 years ago
During the mozilla-aurora cycle, the bug 1206771 didn't bit us. 
When we moved m-a into m-b, we had the build failing because of this bug.

Maybe -Werror=unused-but-set-variable is set only on m-b and not on m-a?

Anyway, this should be enabled on nightly, aurora, etc
The only code using the variable was |MOZ_DIAGNOSTIC_ASSERT(!reentrantFlag);|, and that's not supposed to have any effect on beta/release (see

So this seems expected.

But does seem like a bit of a footgun to have it cause errors like bug 1206771 upon uplift...
Component: Release Automation → MFBT
Product: Release Engineering → Core
QA Contact: bhearsum
Summary: different behavior with CXXFLAGS on m-a and m-b → Build failed after uplift due to -Werror=unused-but-set-variable + MOZ_DIAGNOSTIC_ASSERT
You need to log in before you can comment on or make changes to this bug.