Bug 1245106 - necko compilation warnings r=mcmanus

--HG--
extra : rebase_source : 6f4adf253af73a58d3ff5561e33e34eed94e456b
This commit is contained in:
Paul Bignier 2016-02-26 11:29:28 -05:00
parent 38d879e09d
commit 1d1fd489f5
3 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@ struct nsProtocolInfo {
static nsresult
GetProxyURI(nsIChannel *channel, nsIURI **aOut)
{
nsresult rv;
nsresult rv = NS_OK;
nsCOMPtr<nsIURI> proxyURI;
nsCOMPtr<nsIHttpChannelInternal> httpChannel(do_QueryInterface(channel));
if (httpChannel) {

View File

@ -506,7 +506,7 @@ static void ucs4toUtf16(const uint32_t *in, nsAString& out)
static nsresult punycode(const nsAString& in, nsACString& out)
{
uint32_t ucs4Buf[kMaxDNSNodeLen + 1];
uint32_t ucs4Len;
uint32_t ucs4Len = 0u;
nsresult rv = utf16ToUcs4(in, ucs4Buf, kMaxDNSNodeLen, &ucs4Len);
NS_ENSURE_SUCCESS(rv, rv);

View File

@ -1279,8 +1279,8 @@ Http2Compressor::ProcessHeader(const nvPair inputPair, bool noLocalIndex,
{
uint32_t newSize = inputPair.Size();
uint32_t headerTableSize = mHeaderTable.Length();
uint32_t matchedIndex;
uint32_t nameReference = 0;
uint32_t matchedIndex = 0u;
uint32_t nameReference = 0u;
bool match = false;
LOG(("Http2Compressor::ProcessHeader %s %s", inputPair.mName.get(),