From 2f0de324236ad0dd27629e91d90c701278da72b8 Mon Sep 17 00:00:00 2001 From: Brad Campbell Date: Wed, 22 Nov 2023 16:33:12 -0500 Subject: [PATCH] hide warning for infinite recursion --- examples/tests/mpu_stack_growth/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/tests/mpu_stack_growth/main.c b/examples/tests/mpu_stack_growth/main.c index 82394547e..8b50eaee9 100644 --- a/examples/tests/mpu_stack_growth/main.c +++ b/examples/tests/mpu_stack_growth/main.c @@ -23,6 +23,8 @@ static void read_ptr(uint32_t* p) { printf(" value %lu\n", *p); } +#pragma GCC diagnostic ignored "-Wpragmas" +#pragma GCC diagnostic ignored "-Winfinite-recursion" static void grow_stack(void) { register uint32_t* sp asm ("sp");