[compiler-rt] r191821 - msan: fix compiler warnings about unused variables

Dmitry Vyukov dvyukov at google.com
Wed Oct 2 07:02:09 PDT 2013


Author: dvyukov
Date: Wed Oct  2 09:02:08 2013
New Revision: 191821

URL: http://llvm.org/viewvc/llvm-project?rev=191821&view=rev
Log:
msan: fix compiler warnings about unused variables

Modified:
    compiler-rt/trunk/lib/msan/msan_interceptors.cc

Modified: compiler-rt/trunk/lib/msan/msan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/msan_interceptors.cc?rev=191821&r1=191820&r2=191821&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/msan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/msan/msan_interceptors.cc Wed Oct  2 09:02:08 2013
@@ -1130,6 +1130,7 @@ struct MSanInterceptorContext {
   if (msan_init_is_running) return REAL(func)(__VA_ARGS__);   \
   MSanInterceptorContext msan_ctx = {IsInInterceptorScope()}; \
   ctx = (void *)&msan_ctx;                                    \
+  (void)ctx;                                                  \
   InterceptorScope interceptor_scope;                         \
   ENSURE_MSAN_INITED();
 #define COMMON_INTERCEPTOR_FD_ACQUIRE(ctx, fd) \





More information about the llvm-commits mailing list