зеркало из https://github.com/mozilla/gecko-dev.git
bug 1124463 - suppress -Wunused warnings in IUNKNOWN impl macros r=ehsan
This commit is contained in:
Родитель
d2a3b28ddc
Коммит
b99cc1b432
|
@ -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; \
|
||||
|
|
Загрузка…
Ссылка в новой задаче