[compiler-rt] r192443 - [sanitizer] Ninja style fix to r192442.

Sergey Matveev earthdok at google.com
Fri Oct 11 05:15:45 PDT 2013


Author: smatveev
Date: Fri Oct 11 07:15:45 2013
New Revision: 192443

URL: http://llvm.org/viewvc/llvm-project?rev=192443&view=rev
Log:
[sanitizer] Ninja style fix to r192442.

Modified:
    compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_linux_test.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_linux_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_linux_test.cc?rev=192443&r1=192442&r2=192443&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_linux_test.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_linux_test.cc Fri Oct 11 07:15:45 2013
@@ -255,8 +255,8 @@ TEST(SanitizerCommon, LibraryNameIs) {
     }
 }
 
-pthread_key_t key;
-bool destructor_executed;
+static pthread_key_t key;
+static bool destructor_executed;
 
 extern "C"
 void destructor(void *arg) {
@@ -273,7 +273,7 @@ void *thread_func(void *arg) {
   return reinterpret_cast<void*>(pthread_setspecific(key, arg));
 }
 
-void SpawnThread(uptr iteration) {
+static void SpawnThread(uptr iteration) {
   destructor_executed = false;
   pthread_t tid;
   ASSERT_EQ(0, pthread_create(&tid, 0, &thread_func,





More information about the llvm-commits mailing list