]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix tsan_unittest.cpp compile error with older compilers.
authorMark Wielaard <mark@klomp.org>
Sun, 2 Dec 2018 11:39:27 +0000 (12:39 +0100)
committerMark Wielaard <mark@klomp.org>
Sun, 2 Dec 2018 11:39:27 +0000 (12:39 +0100)
Older compilers (g++ 4.8.5) don't like '>>':
  error: ‘>>’ should be ‘> >’ within a nested template argument list.
Add an extra space.

drd/tests/tsan_unittest.cpp

index c504e9f93fc788acc3ecebe847c8ddf59f0ad6a0..16fe837756f3c91b43fbbf79f8c9f551a35eb04c 100644 (file)
@@ -7218,7 +7218,7 @@ bool NoElementsLeft(vector<int> *v) {
 }
 
 void WaitForAllThreadsToFinish_Good() {
-  mu.LockWhen(Condition<vector<int>>(NoElementsLeft, vec));
+  mu.LockWhen(Condition<vector<int> >(NoElementsLeft, vec));
   mu.Unlock();
 
   // It is now safe to access vec w/o lock.