From: Pirama Arumuga Nainar Date: Fri, 21 Sep 2018 20:01:22 +0000 (+0000) Subject: [libc++abi] is_strcmp parameter to is_equal is unused for WIN32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=546de61000835e41db6398413c0275f84b4f9860;p=platform%2Fupstream%2Fllvm.git [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 --- 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 }