Bug 1310127 - Part 9: Use MOZ_MUST_USE in netwerk/protocol/http r?hsivonen draft
authorWei-Cheng Pan <wpan@mozilla.com>
Tue, 20 Dec 2016 14:36:24 +0800
changeset 494456 90e1b2149a45fdd666e68dd37f7dd979ef026f4d
parent 494455 b0c1cf913ccc1721b0f4b6ec8b1def308f217817
child 494457 559940afbc5fdfdd1d8fd73ae134b8e2db30d22f
push id48029
push userbmo:wpan@mozilla.com
push dateTue, 07 Mar 2017 03:35:29 +0000
reviewershsivonen
bugs1310127
milestone54.0a1
Bug 1310127 - Part 9: Use MOZ_MUST_USE in netwerk/protocol/http r?hsivonen MozReview-Commit-ID: DtkBSXg0AQe
parser/html/nsHtml5StreamParser.cpp
--- a/parser/html/nsHtml5StreamParser.cpp
+++ b/parser/html/nsHtml5StreamParser.cpp
@@ -957,17 +957,17 @@ nsHtml5StreamParser::OnStartRequest(nsIR
   // The line below means that the encoding can end up being wrong if
   // a view-source URL is loaded without having the encoding hint from a
   // previous normal load in the history.
   mReparseForbidden = !(mMode == NORMAL || mMode == PLAIN_TEXT);
 
   nsCOMPtr<nsIHttpChannel> httpChannel(do_QueryInterface(mRequest, &rv));
   if (NS_SUCCEEDED(rv)) {
     nsAutoCString method;
-    httpChannel->GetRequestMethod(method);
+    Unused << httpChannel->GetRequestMethod(method);
     // XXX does Necko have a way to renavigate POST, etc. without hitting
     // the network?
     if (!method.EqualsLiteral("GET")) {
       // This is the old Gecko behavior but the HTML5 spec disagrees.
       // Don't reparse on POST.
       mReparseForbidden = true;
       mFeedChardet = false; // can't restart anyway
     }