From 1a6c3f80d01897c58866265308482b0a9c503052 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Fri, 2 Aug 2019 14:54:23 +0200 Subject: Mark fill members unused for clang. --- fnet/src/tests/frt/method_pt/method_pt.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'fnet/src') 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: -- cgit v1.2.3