diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2013-06-10 10:30:19 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2013-06-10 10:30:19 +0000 |
commit | cc08fca1faf3b61fa51f32b2360c978982de6b77 (patch) | |
tree | f994e91df8abf98c12d3839569ec49015dd9cc96 /lib/tsan/rtl/tsan_rtl_report.cc | |
parent | c5288679cc55c523188a40325d49d97b100cf03c (diff) | |
download | compiler-rt-cc08fca1faf3b61fa51f32b2360c978982de6b77.tar.gz compiler-rt-cc08fca1faf3b61fa51f32b2360c978982de6b77.tar.bz2 compiler-rt-cc08fca1faf3b61fa51f32b2360c978982de6b77.tar.xz |
tsan: fix old gcc warnings
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183645 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/rtl/tsan_rtl_report.cc')
-rw-r--r-- | lib/tsan/rtl/tsan_rtl_report.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tsan/rtl/tsan_rtl_report.cc b/lib/tsan/rtl/tsan_rtl_report.cc index dfc5834c..35394a1e 100644 --- a/lib/tsan/rtl/tsan_rtl_report.cc +++ b/lib/tsan/rtl/tsan_rtl_report.cc @@ -448,7 +448,7 @@ static bool HandleRacyStacks(ThreadState *thr, const StackTrace (&traces)[2], uptr addr_min, uptr addr_max) { Context *ctx = CTX(); bool equal_stack = false; - RacyStacks hash; + RacyStacks hash = {}; if (flags()->suppress_equal_stacks) { hash.hash[0] = md5_hash(traces[0].Begin(), traces[0].Size() * sizeof(uptr)); hash.hash[1] = md5_hash(traces[1].Begin(), traces[1].Size() * sizeof(uptr)); @@ -488,7 +488,7 @@ static void AddRacyStacks(ThreadState *thr, const StackTrace (&traces)[2], uptr addr_min, uptr addr_max) { Context *ctx = CTX(); if (flags()->suppress_equal_stacks) { - RacyStacks hash; + RacyStacks hash = {}; hash.hash[0] = md5_hash(traces[0].Begin(), traces[0].Size() * sizeof(uptr)); hash.hash[1] = md5_hash(traces[1].Begin(), traces[1].Size() * sizeof(uptr)); ctx->racy_stacks.PushBack(hash); |