Index: src/private_typeinfo.cpp =================================================================== --- src/private_typeinfo.cpp +++ src/private_typeinfo.cpp @@ -51,13 +51,17 @@ // Defining _LIBCXX_DYNAMIC_FALLBACK does not help since can_catch() calls // is_equal() with use_strcmp=false so the string names are not compared. +#define _UNUSED_IN_WIN32 #ifdef _WIN32 #include +#define _UNUSED_IN_WIN32 __attribute__((unused)) #endif static inline bool -is_equal(const std::type_info* x, const std::type_info* y, bool use_strcmp) +is_equal(const std::type_info* x, + const std::type_info* y, + _UNUSED_IN_WIN32 bool use_strcmp) { #ifndef _WIN32 if (!use_strcmp)