[compiler-rt] r262342 - sanitizer_common: silence compiler warning
Dmitry Vyukov via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 1 07:36:42 PST 2016
Author: dvyukov
Date: Tue Mar 1 09:36:42 2016
New Revision: 262342
URL: http://llvm.org/viewvc/llvm-project?rev=262342&view=rev
Log:
sanitizer_common: silence compiler warning
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc?rev=262342&r1=262341&r2=262342&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc Tue Mar 1 09:36:42 2016
@@ -5354,6 +5354,7 @@ INTERCEPTOR(SSIZE_T, recvfrom, int fd, v
COMMON_INTERCEPTOR_FD_ACCESS(ctx, fd);
SIZE_T srcaddr_sz;
if (srcaddr) srcaddr_sz = *addrlen;
+ (void)srcaddr_sz; // prevent "set but not used" warning
SSIZE_T res = REAL(recvfrom)(fd, buf, len, flags, srcaddr, addrlen);
if (res > 0) {
COMMON_INTERCEPTOR_WRITE_RANGE(ctx, buf, res);
More information about the llvm-commits
mailing list