|
From: Mark W. <ma...@so...> - 2018-12-02 11:44:03
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=206e81e8add574bbb38c11105005decedabc2f4a commit 206e81e8add574bbb38c11105005decedabc2f4a Author: Mark Wielaard <ma...@kl...> Date: Sun Dec 2 12:39:27 2018 +0100 Fix tsan_unittest.cpp compile error with older compilers. Older compilers (g++ 4.8.5) don't like '>>': error: â>>â should be â> >â within a nested template argument list. Add an extra space. Diff: --- drd/tests/tsan_unittest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drd/tests/tsan_unittest.cpp b/drd/tests/tsan_unittest.cpp index c504e9f..16fe837 100644 --- a/drd/tests/tsan_unittest.cpp +++ b/drd/tests/tsan_unittest.cpp @@ -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. |