summaryrefslogtreecommitdiffstats
path: root/fnet
diff options
context:
space:
mode:
Diffstat (limited to 'fnet')
-rw-r--r--fnet/src/tests/frt/method_pt/method_pt.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/fnet/src/tests/frt/method_pt/method_pt.cpp b/fnet/src/tests/frt/method_pt/method_pt.cpp
index 608a435bd1d..53960d73466 100644
--- a/fnet/src/tests/frt/method_pt/method_pt.cpp
+++ b/fnet/src/tests/frt/method_pt/method_pt.cpp
@@ -61,12 +61,18 @@ public:
//-------------------------------------------------------------
+#ifdef __clang__
+#define UNUSED_MEMBER [[maybe_unused]]
+#else
+#define UNUSED_MEMBER
+#endif
+
class ComplexA
{
private:
- uint32_t _fill1;
- uint32_t _fill2;
- uint32_t _fill3;
+ UNUSED_MEMBER uint32_t _fill1;
+ UNUSED_MEMBER uint32_t _fill2;
+ UNUSED_MEMBER uint32_t _fill3;
public:
@@ -83,9 +89,9 @@ public:
class ComplexB
{
private:
- uint32_t _fill1;
- uint32_t _fill2;
- uint32_t _fill3;
+ UNUSED_MEMBER uint32_t _fill1;
+ UNUSED_MEMBER uint32_t _fill2;
+ UNUSED_MEMBER uint32_t _fill3;
public: