mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1124463 - suppress -Wunused warnings in IUNKNOWN impl macros r=ehsan
This commit is contained in:
parent
d2ca83463f
commit
87b06d6a84
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user