diff --git a/content/base/src/Makefile.in b/content/base/src/Makefile.in index c7c1d95097a6..9ecd0412f0b6 100644 --- a/content/base/src/Makefile.in +++ b/content/base/src/Makefile.in @@ -15,7 +15,6 @@ LIBRARY_NAME = gkconbase_s LIBXUL_LIBRARY = 1 - EXPORTS = \ nsAtomListUtils.h \ nsAttrName.h \ diff --git a/content/base/src/nsContentIterator.cpp b/content/base/src/nsContentIterator.cpp index 08a3f818c1c6..a5cc7065e131 100644 --- a/content/base/src/nsContentIterator.cpp +++ b/content/base/src/nsContentIterator.cpp @@ -1199,8 +1199,8 @@ nsContentSubtreeIterator::Init(nsIDOMRange* aRange) PRInt32 endOffset = mRange->EndOffset(); MOZ_ASSERT(mCommonParent && startParent && endParent); // Bug 767169 - MOZ_ASSERT(startOffset <= startParent->Length() && - endOffset <= endParent->Length()); + MOZ_ASSERT(PRUint32(startOffset) <= startParent->Length() && + PRUint32(endOffset) <= endParent->Length()); // short circuit when start node == end node if (startParent == endParent) { diff --git a/content/base/src/nsDOMParser.h b/content/base/src/nsDOMParser.h index 80c5ed4c0286..af9f9aba27d9 100644 --- a/content/base/src/nsDOMParser.h +++ b/content/base/src/nsDOMParser.h @@ -57,7 +57,6 @@ private: nsCOMPtr mBaseURI; nsWeakPtr mScriptHandlingObject; - bool mLoopingForSyncLoad; bool mAttemptedInit; }; diff --git a/content/events/src/Makefile.in b/content/events/src/Makefile.in index 0a8fd5e6cb54..5232a32c9e9c 100644 --- a/content/events/src/Makefile.in +++ b/content/events/src/Makefile.in @@ -13,6 +13,7 @@ include $(DEPTH)/config/autoconf.mk MODULE = content LIBRARY_NAME = gkconevents_s LIBXUL_LIBRARY = 1 +FAIL_ON_WARNINGS = 1 EXPORTS = \ nsEventStateManager.h \ diff --git a/content/events/src/nsDOMTouchEvent.h b/content/events/src/nsDOMTouchEvent.h index addbdbb51ae0..6dfa41f59656 100644 --- a/content/events/src/nsDOMTouchEvent.h +++ b/content/events/src/nsDOMTouchEvent.h @@ -97,7 +97,7 @@ protected: bool mPointsInitialized; }; -class nsDOMTouchList : public nsIDOMTouchList +class nsDOMTouchList MOZ_FINAL : public nsIDOMTouchList { public: NS_DECL_CYCLE_COLLECTING_ISUPPORTS diff --git a/content/html/document/src/Makefile.in b/content/html/document/src/Makefile.in index 1cea15000b79..005fb9df736e 100644 --- a/content/html/document/src/Makefile.in +++ b/content/html/document/src/Makefile.in @@ -13,7 +13,7 @@ include $(DEPTH)/config/autoconf.mk MODULE = content LIBRARY_NAME = gkconhtmldoc_s LIBXUL_LIBRARY = 1 - +FAIL_ON_WARNINGS = 1 CPPSRCS = \ nsHTMLContentSink.cpp \ diff --git a/content/mathml/content/src/Makefile.in b/content/mathml/content/src/Makefile.in index 0dae527c63ff..429c1c666c4e 100644 --- a/content/mathml/content/src/Makefile.in +++ b/content/mathml/content/src/Makefile.in @@ -13,6 +13,7 @@ include $(DEPTH)/config/autoconf.mk MODULE = content LIBRARY_NAME = gkcontentmathml_s LIBXUL_LIBRARY = 1 +FAIL_ON_WARNINGS = 1 CPPSRCS = \ nsMathMLElement.cpp \ diff --git a/content/svg/content/src/Makefile.in b/content/svg/content/src/Makefile.in index 0ba7dd70c816..2cd8ab91c930 100644 --- a/content/svg/content/src/Makefile.in +++ b/content/svg/content/src/Makefile.in @@ -13,6 +13,7 @@ include $(DEPTH)/config/autoconf.mk MODULE = content LIBRARY_NAME = gkcontentsvg_s LIBXUL_LIBRARY = 1 +FAIL_ON_WARNINGS = 1 CPPSRCS = \ DOMSVGAnimatedLengthList.cpp \ diff --git a/content/xbl/src/Makefile.in b/content/xbl/src/Makefile.in index 66e350620308..320f7422cf32 100644 --- a/content/xbl/src/Makefile.in +++ b/content/xbl/src/Makefile.in @@ -14,7 +14,6 @@ MODULE = content LIBRARY_NAME = gkconxbl_s LIBXUL_LIBRARY = 1 - CPPSRCS = \ nsXBLBinding.cpp \ nsXBLPrototypeBinding.cpp \ diff --git a/content/xml/content/src/Makefile.in b/content/xml/content/src/Makefile.in index fd7f24c083e9..46f30b02e1f8 100644 --- a/content/xml/content/src/Makefile.in +++ b/content/xml/content/src/Makefile.in @@ -13,7 +13,7 @@ include $(DEPTH)/config/autoconf.mk MODULE = content LIBRARY_NAME = gkconxmlcon_s LIBXUL_LIBRARY = 1 - +FAIL_ON_WARNINGS = 1 CPPSRCS = \ nsXMLElement.cpp \ diff --git a/content/xml/document/src/Makefile.in b/content/xml/document/src/Makefile.in index 7962eda9a5cf..fd3e86dc2563 100644 --- a/content/xml/document/src/Makefile.in +++ b/content/xml/document/src/Makefile.in @@ -13,7 +13,7 @@ include $(DEPTH)/config/autoconf.mk MODULE = content LIBRARY_NAME = gkconxmldoc_s LIBXUL_LIBRARY = 1 - +FAIL_ON_WARNINGS = 1 CPPSRCS = \ nsXMLContentSink.cpp \ diff --git a/content/xml/document/src/nsXMLPrettyPrinter.cpp b/content/xml/document/src/nsXMLPrettyPrinter.cpp index bc593b850452..2ca6e7358be6 100644 --- a/content/xml/document/src/nsXMLPrettyPrinter.cpp +++ b/content/xml/document/src/nsXMLPrettyPrinter.cpp @@ -29,7 +29,6 @@ NS_IMPL_ISUPPORTS2(nsXMLPrettyPrinter, nsIMutationObserver) nsXMLPrettyPrinter::nsXMLPrettyPrinter() : mDocument(nullptr), - mUpdateDepth(0), mUnhookPending(false) { } @@ -44,7 +43,7 @@ nsXMLPrettyPrinter::PrettyPrint(nsIDocument* aDocument, bool* aDidPrettyPrint) { *aDidPrettyPrint = false; - + // Check for iframe with display:none. Such iframes don't have presshells if (!aDocument->GetShell()) { return NS_OK; diff --git a/content/xml/document/src/nsXMLPrettyPrinter.h b/content/xml/document/src/nsXMLPrettyPrinter.h index c1d4743d42e5..0e99c94869de 100644 --- a/content/xml/document/src/nsXMLPrettyPrinter.h +++ b/content/xml/document/src/nsXMLPrettyPrinter.h @@ -49,7 +49,6 @@ private: void MaybeUnhook(nsIContent* aContent); nsIDocument* mDocument; //weak. Set as long as we're observing the document - PRUint32 mUpdateDepth; bool mUnhookPending; }; diff --git a/content/xslt/src/xpath/nsXPathEvaluator.cpp b/content/xslt/src/xpath/nsXPathEvaluator.cpp index 0e7cbe246230..d241f3af9f57 100644 --- a/content/xslt/src/xpath/nsXPathEvaluator.cpp +++ b/content/xslt/src/xpath/nsXPathEvaluator.cpp @@ -26,14 +26,12 @@ class nsXPathEvaluatorParseContext : public txIParseContext { public: - nsXPathEvaluatorParseContext(nsXPathEvaluator &aEvaluator, - nsIDOMXPathNSResolver* aResolver, + nsXPathEvaluatorParseContext(nsIDOMXPathNSResolver* aResolver, nsTArray *aNamespaceIDs, nsTArray *aContractIDs, nsCOMArray *aState, bool aIsCaseSensitive) - : mEvaluator(aEvaluator), - mResolver(aResolver), + : mResolver(aResolver), mNamespaceIDs(aNamespaceIDs), mContractIDs(aContractIDs), mState(aState), @@ -57,7 +55,6 @@ public: void SetErrorOffset(PRUint32 aOffset); private: - nsXPathEvaluator &mEvaluator; nsIDOMXPathNSResolver* mResolver; nsTArray *mNamespaceIDs; nsTArray *mContractIDs; @@ -191,7 +188,7 @@ nsXPathEvaluator::CreateExpression(const nsAString & aExpression, } nsCOMPtr doc = do_QueryReferent(mDocument); - nsXPathEvaluatorParseContext pContext(*this, aResolver, aNamespaceIDs, + nsXPathEvaluatorParseContext pContext(aResolver, aNamespaceIDs, aContractIDs, aState, !(doc && doc->IsHTML())); diff --git a/content/xslt/src/xpath/txXPCOMExtensionFunction.cpp b/content/xslt/src/xpath/txXPCOMExtensionFunction.cpp index 2702ce577f7a..3a2e0effa659 100644 --- a/content/xslt/src/xpath/txXPCOMExtensionFunction.cpp +++ b/content/xslt/src/xpath/txXPCOMExtensionFunction.cpp @@ -99,9 +99,9 @@ public: txXPCOMExtensionFunctionCall(nsISupports *aHelper, const nsIID &aIID, PRUint16 aMethodIndex, #ifdef TX_TO_STRING - PRInt32 aNamespaceID, nsIAtom *aName, + nsIAtom *aName, #endif - nsISupports *aState); + nsISupports *aState); TX_DECL_FUNCTION @@ -113,7 +113,6 @@ private: nsIID mIID; PRUint16 mMethodIndex; #ifdef TX_TO_STRING - PRInt32 mNamespaceID; nsCOMPtr mName; #endif nsCOMPtr mState; @@ -123,7 +122,6 @@ txXPCOMExtensionFunctionCall::txXPCOMExtensionFunctionCall(nsISupports *aHelper, const nsIID &aIID, PRUint16 aMethodIndex, #ifdef TX_TO_STRING - PRInt32 aNamespaceID, nsIAtom *aName, #endif nsISupports *aState) @@ -131,7 +129,6 @@ txXPCOMExtensionFunctionCall::txXPCOMExtensionFunctionCall(nsISupports *aHelper, mIID(aIID), mMethodIndex(aMethodIndex), #ifdef TX_TO_STRING - mNamespaceID(aNamespaceID), mName(aName), #endif mState(aState) @@ -248,7 +245,7 @@ TX_ResolveFunctionCallXPCOM(const nsCString &aContractID, PRInt32 aNamespaceID, *aFunction = new txXPCOMExtensionFunctionCall(helper, iid, methodIndex, #ifdef TX_TO_STRING - aNamespaceID, aName, + aName, #endif aState); diff --git a/content/xslt/src/xslt/txStylesheetCompiler.cpp b/content/xslt/src/xslt/txStylesheetCompiler.cpp index 3824e4f6ba4e..4319fd07160d 100644 --- a/content/xslt/src/xslt/txStylesheetCompiler.cpp +++ b/content/xslt/src/xslt/txStylesheetCompiler.cpp @@ -859,9 +859,8 @@ txStylesheetCompilerState::resolveNamespacePrefix(nsIAtom* aPrefix, class txErrorFunctionCall : public FunctionCall { public: - txErrorFunctionCall(nsIAtom* aName, const PRInt32 aID) - : mName(aName), - mID(aID) + txErrorFunctionCall(nsIAtom* aName) + : mName(aName) { } @@ -869,7 +868,6 @@ public: private: nsCOMPtr mName; - PRInt32 mID; }; nsresult @@ -1092,7 +1090,7 @@ txStylesheetCompilerState::resolveFunctionCall(nsIAtom* aName, PRInt32 aID, nsresult rv = findFunction(aName, aID, this, aFunction); if (rv == NS_ERROR_XPATH_UNKNOWN_FUNCTION && (aID != kNameSpaceID_None || fcp())) { - *aFunction = new txErrorFunctionCall(aName, aID); + *aFunction = new txErrorFunctionCall(aName); rv = *aFunction ? NS_OK : NS_ERROR_OUT_OF_MEMORY; } diff --git a/content/xtf/src/Makefile.in b/content/xtf/src/Makefile.in index 9f4db70bc60a..3326a4b75119 100644 --- a/content/xtf/src/Makefile.in +++ b/content/xtf/src/Makefile.in @@ -12,6 +12,7 @@ include $(DEPTH)/config/autoconf.mk MODULE = content LIBRARY_NAME = gkcontentxtf_s LIBXUL_LIBRARY = 1 +FAIL_ON_WARNINGS = 1 CPPSRCS = \ nsXMLContentBuilder.cpp \ diff --git a/content/xul/content/src/Makefile.in b/content/xul/content/src/Makefile.in index 43abc4f9a7b9..c937af7baf13 100644 --- a/content/xul/content/src/Makefile.in +++ b/content/xul/content/src/Makefile.in @@ -7,6 +7,7 @@ DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ +FAIL_ON_WARNINGS = 1 include $(DEPTH)/config/autoconf.mk