From 795b47a7b56c0e6c64a90159373d88f80994f885 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 5 Jun 2020 08:23:47 -0700 Subject: [PATCH] Fix a warning (#1712) --- include/fmt/format.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/fmt/format.h b/include/fmt/format.h index 3c6b04fd..df352833 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -759,7 +759,9 @@ template struct FMT_EXTERN_TEMPLATE_API basic_data { static const char right_padding_shifts[5]; }; +#ifndef FMT_EXPORT FMT_EXTERN template struct basic_data; +#endif // This is a struct rather than an alias to avoid shadowing warnings in gcc. struct data : basic_data<> {};