From 88a3b58651a0b7be47e860a07c60d17a6c3cd216 Mon Sep 17 00:00:00 2001 From: abitmore Date: Sun, 14 Jun 2020 21:53:47 +0000 Subject: [PATCH] Fix Clang -Wmismatched-tags warning on tuple_size --- include/fc/container/zeroed_array.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/fc/container/zeroed_array.hpp b/include/fc/container/zeroed_array.hpp index 14bd116..8f5220c 100644 --- a/include/fc/container/zeroed_array.hpp +++ b/include/fc/container/zeroed_array.hpp @@ -74,6 +74,14 @@ namespace fc { } namespace std { +#if defined(__clang__) + // Fix: https://github.com/bitshares/bitshares-core/issues/2197 + #pragma clang diagnostic push + #pragma clang diagnostic ignored "-Wmismatched-tags" +#endif template< typename T, size_t N > class tuple_size< fc::zero_initialized_array< T, N > > : public tuple_size< array< T, N > > {}; +#if defined(__clang__) + #pragma clang diagnostic pop +#endif }