From 546de61000835e41db6398413c0275f84b4f9860 Mon Sep 17 00:00:00 2001 From: Pirama Arumuga Nainar Date: Fri, 21 Sep 2018 20:01:22 +0000 Subject: [PATCH] [libc++abi] is_strcmp parameter to is_equal is unused for WIN32 Summary: Mark it as unused to avoid -Wunused-parameter. Reviewers: EricWF, srhines, mstorsjo Subscribers: christof, ldionne, libcxx-commits, cfe-commits Differential Revision: https://reviews.llvm.org/D52368 llvm-svn: 342764 --- libcxxabi/src/private_typeinfo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libcxxabi/src/private_typeinfo.cpp b/libcxxabi/src/private_typeinfo.cpp index a0326a1..67a5a62 100644 --- a/libcxxabi/src/private_typeinfo.cpp +++ b/libcxxabi/src/private_typeinfo.cpp @@ -64,6 +64,7 @@ is_equal(const std::type_info* x, const std::type_info* y, bool use_strcmp) return x == y; return strcmp(x->name(), y->name()) == 0; #else + (void) use_strcmp; return (x == y) || (strcmp(x->name(), y->name()) == 0); #endif } -- 2.7.4