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
Родитель d2a3b28ddc
Коммит b99cc1b432
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -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; \