[compiler-rt] r190993 - [TSan] Fix -Wempty-body warning
Alexey Samsonov
samsonov at google.com
Thu Sep 19 00:59:19 PDT 2013
Author: samsonov
Date: Thu Sep 19 02:59:18 2013
New Revision: 190993
URL: http://llvm.org/viewvc/llvm-project?rev=190993&view=rev
Log:
[TSan] Fix -Wempty-body warning
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc?rev=190993&r1=190992&r2=190993&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc Thu Sep 19 02:59:18 2013
@@ -1843,10 +1843,14 @@ struct TsanInterceptorContext {
#include "sanitizer_common/sanitizer_common_interceptors.inc"
// FIXME: Implement these with MemoryAccessRange().
-#define COMMON_SYSCALL_PRE_READ_RANGE(p, s)
-#define COMMON_SYSCALL_PRE_WRITE_RANGE(p, s)
-#define COMMON_SYSCALL_POST_READ_RANGE(p, s)
-#define COMMON_SYSCALL_POST_WRITE_RANGE(p, s)
+#define COMMON_SYSCALL_PRE_READ_RANGE(p, s) \
+ do { } while (false)
+#define COMMON_SYSCALL_PRE_WRITE_RANGE(p, s) \
+ do { } while (false)
+#define COMMON_SYSCALL_POST_READ_RANGE(p, s) \
+ do { } while (false)
+#define COMMON_SYSCALL_POST_WRITE_RANGE(p, s) \
+ do { } while (false)
#include "sanitizer_common/sanitizer_common_syscalls.inc"
namespace __tsan {
More information about the llvm-commits
mailing list