am dc91dafa: Merge "Ignore explicit infinite recursion."
* commit 'dc91dafa3b614b399074a1506ba1684c89ae4eae':
Ignore explicit infinite recursion.
diff --git a/debuggerd/crasher.c b/debuggerd/crasher.c
index b5064b4..59ac8da 100644
--- a/debuggerd/crasher.c
+++ b/debuggerd/crasher.c
@@ -51,6 +51,9 @@
return 0;
}
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Winfinite-recursion"
+
static void* global = 0; // So GCC doesn't optimize the tail recursion out of overflow_stack.
__attribute__((noinline)) static void overflow_stack(void* p) {
@@ -60,6 +63,8 @@
overflow_stack(&buf);
}
+#pragma clang diagnostic pop
+
static void *noisy(void *x)
{
char c = (uintptr_t) x;