summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-03-03 22:21:02 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-03-03 22:21:02 +0000
commit75464e174a4be825e0517efc1fc0be140630ec39 (patch)
treebdb4da9ac52f65d01b72e519742a800468f2768c /llvm/lib/Support/Unix
parent6241c2a6c11de3aef40704b02ff919f170252953 (diff)
downloadbcm5719-llvm-75464e174a4be825e0517efc1fc0be140630ec39.tar.gz
bcm5719-llvm-75464e174a4be825e0517efc1fc0be140630ec39.zip
Silence a warning, NFC
llvm-svn: 296917
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r--llvm/lib/Support/Unix/Threading.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/Unix/Threading.inc b/llvm/lib/Support/Unix/Threading.inc
index 6301a674df0..b031ff4c034 100644
--- a/llvm/lib/Support/Unix/Threading.inc
+++ b/llvm/lib/Support/Unix/Threading.inc
@@ -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
OpenPOWER on IntegriCloud