зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1301856 - Spurious valgrind warning in in CSSParserImpl::ParseGridLine() with gcc 5.3. r=mats@mozilla.com.
--HG-- extra : rebase_source : 3a781aa7b35ffaca474313626cec07d4deea3a85
This commit is contained in:
Родитель
31b1c78d63
Коммит
15d049af48
|
@ -9685,6 +9685,15 @@ CSSParserImpl::ParseGridLine(nsCSSValue& aValue)
|
|||
Maybe<int32_t> integer;
|
||||
nsCSSValue ident;
|
||||
|
||||
#ifdef MOZ_VALGRIND
|
||||
// Make the contained value be defined even though we really want a
|
||||
// Nothing here. This works around an otherwise difficult to avoid
|
||||
// Memcheck false positive when this is compiled by gcc-5.3 -O2.
|
||||
// See bug 1301856.
|
||||
integer.emplace(0);
|
||||
integer.reset();
|
||||
#endif
|
||||
|
||||
if (!GetToken(true)) {
|
||||
return false;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче