[PATCH] D56980: [libcxxabi] Avoid warnings about an unused parameter when building for windows

Martin Storsjö via Phabricator reviews at reviews.llvm.org
Sun Jan 20 13:21:43 PST 2019


mstorsjo created this revision.
mstorsjo added reviewers: mclow.lists, EricWF, ldionne, pcc.

Repository:
  rCXXA libc++abi

https://reviews.llvm.org/D56980

Files:
  src/private_typeinfo.cpp


Index: src/private_typeinfo.cpp
===================================================================
--- src/private_typeinfo.cpp
+++ src/private_typeinfo.cpp
@@ -64,6 +64,7 @@
         return x == y;
     return strcmp(x->name(), y->name()) == 0;
 #else
+    (void)use_strcmp;
     return (x == y) || (strcmp(x->name(), y->name()) == 0);
 #endif
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56980.182708.patch
Type: text/x-patch
Size: 349 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190120/1c8613e8/attachment.bin>


More information about the libcxx-commits mailing list