summaryrefslogtreecommitdiffstats
path: root/debuggerd
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2015-09-30 23:30:38 -0700
committerStephen Hines <srhines@google.com>2015-09-30 23:30:38 -0700
commit9466bb2ab64f6647a2c573d01ac7b08349345882 (patch)
tree87bcae3cc5331867c482126e8f4a6137b00a1e41 /debuggerd
parentdc91dafa3b614b399074a1506ba1684c89ae4eae (diff)
downloadcore-9466bb2ab64f6647a2c573d01ac7b08349345882.tar.gz
core-9466bb2ab64f6647a2c573d01ac7b08349345882.tar.bz2
core-9466bb2ab64f6647a2c573d01ac7b08349345882.zip
Fix build break due to unknown pragma (on gcc).
Change-Id: I36bf855769b243139fd45186ac53578448b87a2b
Diffstat (limited to 'debuggerd')
-rw-r--r--debuggerd/crasher.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/debuggerd/crasher.c b/debuggerd/crasher.c
index 59ac8daf4..75f070b58 100644
--- a/debuggerd/crasher.c
+++ b/debuggerd/crasher.c
@@ -51,8 +51,10 @@ __attribute__ ((noinline)) static int smash_stack(volatile int* plen) {
return 0;
}
+#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winfinite-recursion"
+#endif
static void* global = 0; // So GCC doesn't optimize the tail recursion out of overflow_stack.
@@ -63,7 +65,9 @@ __attribute__((noinline)) static void overflow_stack(void* p) {
overflow_stack(&buf);
}
+#if defined(__clang__)
#pragma clang diagnostic pop
+#endif
static void *noisy(void *x)
{