diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2019-08-02 14:54:23 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2019-08-02 14:54:23 +0200 |
commit | 1a6c3f80d01897c58866265308482b0a9c503052 (patch) | |
tree | d87d03c43a2902e38dbeedeb073974f6b727b85f /fnet/src | |
parent | 77e409c8790df9ed6e626b57714ed71770d47d66 (diff) |
Mark fill members unused for clang.
Diffstat (limited to 'fnet/src')
-rw-r--r-- | fnet/src/tests/frt/method_pt/method_pt.cpp | 18 |
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: |