[PATCH] D39151: [tsan] Fix warnings in tsan_interceptors.cc from expansion of variadic macros

Alex Langford via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 20 18:36:04 PDT 2017


xiaobai created this revision.
Herald added a subscriber: kubamracek.

C99 technically requires the rest arguments to be used. This presents a
problem with the macro SCOPED_TSAN_INTERCEPTOR when `func` takes no arguments.
This happens with the function pause. Trying to satisfy the warning by passing
more arguments throws errors, because pause takes no arguments. Not passing
anything triggers this warning.


https://reviews.llvm.org/D39151

Files:
  lib/sanitizer_common/sanitizer_common_defs.h
  lib/sanitizer_common/sanitizer_win_defs.h
  lib/tsan/rtl/tsan_interceptors.cc
  lib/tsan/rtl/tsan_interceptors.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39151.119732.patch
Type: text/x-patch
Size: 4758 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171021/4b0e9b9d/attachment.bin>


More information about the llvm-commits mailing list