diff --git a/folly/lang/TypeInfo.h b/folly/lang/TypeInfo.h index daf7c47f689be4807bd55d09298abb16d321edb6..87a05958e27b156edc8982c045fb2cdad9b6aaec 100644 --- a/folly/lang/TypeInfo.h +++ b/folly/lang/TypeInfo.h @@ -18,6 +18,7 @@ #include <typeinfo> +#include <folly/CppAttributes.h> #include <folly/Portability.h> // FOLLY_TYPE_INFO_OF @@ -48,7 +49,8 @@ FOLLY_ALWAYS_INLINE static std::type_info const* type_info_of() { // // This overload works on the dynamic type of the non-template parameter. template <typename T> -FOLLY_ALWAYS_INLINE static std::type_info const* type_info_of(T const& t) { +FOLLY_ALWAYS_INLINE static std::type_info const* type_info_of( + FOLLY_MAYBE_UNUSED T const& t) { return FOLLY_TYPE_INFO_OF(t); }