зеркало из https://github.com/mozilla/gecko-dev.git
Bug 573895: Disable MSVC warning that's spammed when we pass empty string to the macros NS_[DECLARE|IMPL]_NEW_HTML_ELEMENT. r=jst
This commit is contained in:
Родитель
031edde9a1
Коммит
7fb119b737
|
@ -1316,7 +1316,16 @@ NS_NewHTML##_elementName##Element(nsINodeInfo *aNodeInfo, \
|
|||
return NS_NewHTMLSharedElement(aNodeInfo, aFromParser); \
|
||||
}
|
||||
|
||||
// Disable MSVC warning that spams when we pass empty string as only macro arg.
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4003)
|
||||
#endif
|
||||
NS_DECLARE_NS_NEW_HTML_ELEMENT() // HTMLElement
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
NS_DECLARE_NS_NEW_HTML_ELEMENT(Shared)
|
||||
NS_DECLARE_NS_NEW_HTML_ELEMENT(SharedList)
|
||||
NS_DECLARE_NS_NEW_HTML_ELEMENT(SharedObject)
|
||||
|
|
|
@ -61,7 +61,15 @@ public:
|
|||
nsresult Clone(nsINodeInfo* aNodeInfo, nsINode** aResult) const;
|
||||
};
|
||||
|
||||
// Disable MSVC warning that spams when we pass empty string as only macro arg.
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4003)
|
||||
#endif
|
||||
NS_IMPL_NS_NEW_HTML_ELEMENT() // HTMLElement
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
nsHTMLElement::nsHTMLElement(nsINodeInfo* aNodeInfo)
|
||||
: nsGenericHTMLElement(aNodeInfo)
|
||||
|
|
Загрузка…
Ссылка в новой задаче