From 9bf897e696b8be90432ee14d37da69b1720ae9b7 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 28 May 2012 17:33:08 +0000 Subject: [PATCH] tsan: fix compiler warnings llvm-svn: 157585 --- compiler-rt/lib/tsan/output_tests/simple_stack2.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler-rt/lib/tsan/output_tests/simple_stack2.cc b/compiler-rt/lib/tsan/output_tests/simple_stack2.cc index 354d103..811bc6d 100644 --- a/compiler-rt/lib/tsan/output_tests/simple_stack2.cc +++ b/compiler-rt/lib/tsan/output_tests/simple_stack2.cc @@ -9,16 +9,16 @@ void __attribute__((noinline)) foo1() { } void __attribute__((noinline)) bar1() { - volatile int tmp = 42; (void)tmp; + volatile int tmp = 42; int tmp2 = tmp; (void)tmp2; foo1(); } void __attribute__((noinline)) foo2() { - volatile int v = Global; (void)v; + volatile int tmp = Global; int tmp2 = tmp; (void)tmp2; } void __attribute__((noinline)) bar2() { - volatile int tmp = 42; (void)tmp; + volatile int tmp = 42; int tmp2 = tmp; (void)tmp2; foo2(); } -- 2.7.4