[llvm] r296917 - Silence a warning, NFC
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 3 14:21:02 PST 2017
Author: kparzysz
Date: Fri Mar 3 16:21:02 2017
New Revision: 296917
URL: http://llvm.org/viewvc/llvm-project?rev=296917&view=rev
Log:
Silence a warning, NFC
Modified:
llvm/trunk/lib/Support/Unix/Threading.inc
Modified: llvm/trunk/lib/Support/Unix/Threading.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Threading.inc?rev=296917&r1=296916&r2=296917&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Threading.inc (original)
+++ llvm/trunk/lib/Support/Unix/Threading.inc Fri Mar 3 16:21:02 2017
@@ -113,6 +113,7 @@ void llvm::set_thread_name(const Twine &
// 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
More information about the llvm-commits
mailing list