Commit 15d049af authored by Julian Seward's avatar Julian Seward
Browse files

Bug 1301856 - Spurious valgrind warning in in CSSParserImpl::ParseGridLine()...

Bug 1301856 - Spurious valgrind warning in in CSSParserImpl::ParseGridLine() with gcc 5.3.  r=mats@mozilla.com.

--HG--
extra : rebase_source : 3a781aa7b35ffaca474313626cec07d4deea3a85
parent 31b1c78d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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;
  }