pirama created this revision. pirama added reviewers: EricWF, srhines, mstorsjo. Herald added subscribers: libcxx-commits, ldionne, christof.
Mark it as unused to avoid -Wunused-parameter. Repository: rCXXA libc++abi https://reviews.llvm.org/D52368 Files: src/private_typeinfo.cpp 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 <string.h> +#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)
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 <string.h> +#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)
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits