mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-17 18:38:01 +02:00
Use different unused variable warning suppressor for GCC.
This commit is contained in:
parent
12996454f9
commit
6ff629dcfd
1 changed files with 7 additions and 0 deletions
|
@ -450,6 +450,13 @@ public:
|
||||||
bool operator==(const X& first, const X& second); \
|
bool operator==(const X& first, const X& second); \
|
||||||
bool operator!=(const X& first, const X& second); \
|
bool operator!=(const X& first, const X& second); \
|
||||||
static const int* _TypePtr##X = &X::Type;
|
static const int* _TypePtr##X = &X::Type;
|
||||||
|
#elif __GNUC__
|
||||||
|
#define DECLARE_STREAMABLE_METATYPE(X) Q_DECLARE_METATYPE(X) \
|
||||||
|
Bitstream& operator<<(Bitstream& out, const X& obj); \
|
||||||
|
Bitstream& operator>>(Bitstream& in, X& obj); \
|
||||||
|
bool operator==(const X& first, const X& second); \
|
||||||
|
bool operator!=(const X& first, const X& second); \
|
||||||
|
__attribute__((unused)) static const int* _TypePtr##X = &X::Type;
|
||||||
#else
|
#else
|
||||||
#define STRINGIFY(x) #x
|
#define STRINGIFY(x) #x
|
||||||
#define DECLARE_STREAMABLE_METATYPE(X) Q_DECLARE_METATYPE(X) \
|
#define DECLARE_STREAMABLE_METATYPE(X) Q_DECLARE_METATYPE(X) \
|
||||||
|
|
Loading…
Reference in a new issue