[tsan] Fix unused variable warnings.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Tue, 29 Oct 2013 18:44:52 +0000 (18:44 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Tue, 29 Oct 2013 18:44:52 +0000 (18:44 +0000)
llvm-svn: 193639

compiler-rt/lib/tsan/rtl/tsan_interceptors.cc

index a2033eb..5d22235 100644 (file)
@@ -1939,11 +1939,16 @@ static void syscall_post_fork(uptr pc, int res) {
 #define COMMON_SYSCALL_PRE_WRITE_RANGE(p, s) \
   syscall_access_range(GET_CALLER_PC(), (uptr)(p), (uptr)(s), true)
 #define COMMON_SYSCALL_POST_READ_RANGE(p, s) \
-  do { } while (false)
+  do {                                       \
+    (void)(p);                               \
+    (void)(s);                               \
+  } while (false)
 #define COMMON_SYSCALL_POST_WRITE_RANGE(p, s) \
-  do { } while (false)
-#define COMMON_SYSCALL_FD_CLOSE(fd) \
-  syscall_fd_close(GET_CALLER_PC(), fd)
+  do {                                        \
+    (void)(p);                                \
+    (void)(s);                                \
+  } while (false)
+#define COMMON_SYSCALL_FD_CLOSE(fd) syscall_fd_close(GET_CALLER_PC(), fd)
 #define COMMON_SYSCALL_PRE_FORK() \
   syscall_pre_fork(GET_CALLER_PC())
 #define COMMON_SYSCALL_POST_FORK(res) \