bug 1124463 - suppress -Wunused warnings in IUNKNOWN impl macros r=ehsan

This commit is contained in:
Trevor Saunders 2015-01-21 18:55:53 -05:00
parent d2ca83463f
commit 87b06d6a84

View File

@ -20,6 +20,12 @@
#pragma warning( disable : 4509 )
#endif
#ifdef __GNUC__
#define ATTRIBUTE_UNUSED __attribute__((unused))
#else
#define ATTRIBUTE_UNUSED
#endif
namespace mozilla {
namespace a11y {
@ -78,7 +84,7 @@ Class::QueryInterface(REFIID aIID, void** aInstancePtr) \
return E_INVALIDARG; \
*aInstancePtr = nullptr; \
\
HRESULT hr = E_NOINTERFACE;
HRESULT hr ATTRIBUTE_UNUSED = E_NOINTERFACE;
#define IMPL_IUNKNOWN_QUERY_TAIL \
return hr; \