From f8af6aadbf67bd2ff459d3e8fb09364342a8d080 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 4 Feb 2024 11:48:20 +0100 Subject: fix build --- src/scenery.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/scenery.cpp') diff --git a/src/scenery.cpp b/src/scenery.cpp index b25368e6..e384036d 100644 --- a/src/scenery.cpp +++ b/src/scenery.cpp @@ -13,7 +13,19 @@ namespace floormat { namespace { template struct [[maybe_unused]] overloaded : Ts... { using Ts::operator()...; }; -template [[maybe_unused]] overloaded(Ts...) -> overloaded; + +#if defined __GNUG__ && !defined __clang__ +#pragma GCC diagnostic push // gcc doesn't support [[attributes]] on deduction guides +#pragma GCC diagnostic ignored "-Wunused" +#endif +template +#ifdef __clang__ +[[maybe_unused]] +#endif +overloaded(Ts...) -> overloaded; +#if defined __GNUG__ && !defined __clang__ +#pragma GCC diagnostic pop +#endif template struct proto_to_scenery_; template<> struct proto_to_scenery_ { using type = generic_scenery; }; -- cgit v1.2.3