diff --git a/parse/enum.hpp b/parse/enum.hpp index 1fb2d830..22e5a097 100644 --- a/parse/enum.hpp +++ b/parse/enum.hpp @@ -10,6 +10,7 @@ #include "fwd.hpp" +#include "../platform.hpp" #include "../debug/panic.hpp" #include "../introspection/name.hpp" #include "../log.hpp" @@ -183,10 +184,20 @@ namespace cruft::parse::enumeration { }); if (!success) + // clang#XXX + // fmtlib#1824 + // generates "unused type alias 'char_type'" under clang + #if defined(COMPILER_CLANG) + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wunused-local-typedef" + #endif LOG_WARN ( - "duplicate parse setup for {:s} was ignored", + "duplicate parse setup for {} was ignored", cruft::introspection::name::bare () ); + #if defined(COMPILER_CLANG) + #pragma GCC diagnostic push -Wno-unused-local-typedef + #endif return cookie {}; }