[tsan] Fix warnings in tsan_interceptors.cc from expansion of variadic macros
authorDmitry Vyukov <dvyukov@google.com>
Wed, 25 Oct 2017 08:05:13 +0000 (08:05 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Wed, 25 Oct 2017 08:05:13 +0000 (08:05 +0000)
commit60d8ad284914ee1348a134f60e5e3664acd74cb2
tree19cbb4f383ce3e0b4ba73229e59050e8a543a766
parent373c8efa1e2e35324878b83027e20b3970876e1a
[tsan] Fix warnings in tsan_interceptors.cc from expansion of variadic macros

C99 technically requires the rest arguments to be used in C variadic macros.
This presents a problem with the macro SCOPED_TSAN_INTERCEPTOR when func
takes no arguments. This happens with the function pause. Like other void
argument functions, we pass in a fake argument to avoid this warning.

Author: Alex Langford (xiaobai)
Reviewed in: https://reviews.llvm.org/D39151

llvm-svn: 316558
compiler-rt/lib/tsan/rtl/tsan_interceptors.cc