[compiler-rt] r199730 - Fix unused function warning from r199729
Alexey Samsonov
samsonov at google.com
Tue Jan 21 04:16:19 PST 2014
Author: samsonov
Date: Tue Jan 21 06:16:19 2014
New Revision: 199730
URL: http://llvm.org/viewvc/llvm-project?rev=199730&view=rev
Log:
Fix unused function warning from r199729
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors_scanf.inc
compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors_scanf.inc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors_scanf.inc?rev=199730&r1=199729&r2=199730&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors_scanf.inc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors_scanf.inc Tue Jan 21 06:16:19 2014
@@ -363,6 +363,8 @@ static void scanf_common(void *ctx, int
}
}
+#if SANITIZER_INTERCEPT_PRINTF
+
struct PrintfDirective {
int fieldWidth;
int fieldPrecision;
@@ -533,3 +535,5 @@ static void printf_common(void *ctx, con
}
}
}
+
+#endif // SANITIZER_INTERCEPT_PRINTF
Modified: compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc?rev=199730&r1=199729&r2=199730&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_scanf_interceptor_test.cc Tue Jan 21 06:16:19 2014
@@ -32,6 +32,7 @@ using namespace __sanitizer;
#define COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ptr, size) \
COMMON_INTERCEPTOR_READ_WRITE_RANGE(ctx, ptr, size)
+#define SANITIZER_INTERCEPT_PRINTF 1
#include "sanitizer_common/sanitizer_common_interceptors_scanf.inc"
static const unsigned I = sizeof(int);
More information about the llvm-commits
mailing list