OSDN Git Service

Silence a warning, NFC
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Fri, 3 Mar 2017 22:21:02 +0000 (22:21 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Fri, 3 Mar 2017 22:21:02 +0000 (22:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296917 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Unix/Threading.inc

index 6301a67..b031ff4 100644 (file)
@@ -113,6 +113,7 @@ void llvm::set_thread_name(const Twine &Name) {
   // Make sure the input is null terminated.
   SmallString<64> Storage;
   StringRef NameStr = Name.toNullTerminatedStringRef(Storage);
+  (void)NameStr;
 #if defined(__linux__)
 #if (defined(__GLIBC__) && defined(_GNU_SOURCE)) || defined(__ANDROID__)
 #if HAVE_PTHREAD_SETNAME_NP