From 0271c0ed36791df28d793a27926d83a72610f5ef Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 23 Apr 2021 08:45:33 -0400 Subject: rockboy: Upstream code style trips GCC11 warnings. Code in cpu.h is correct, so just disable -Wmisleading-indentation for the specific sections that matter. Change-Id: I378f3a6fef117ac73edb0d8ce998ef3a818be22e --- apps/plugins/rockboy/cpu.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/plugins/rockboy/cpu.c b/apps/plugins/rockboy/cpu.c index 392dd49b5f..5469db3d4c 100644 --- a/apps/plugins/rockboy/cpu.c +++ b/apps/plugins/rockboy/cpu.c @@ -13,6 +13,11 @@ #include "asm.h" #endif +/* GCC 11 complains about the code style. Just turn this off. */ +#if __GNUC__ >= 11 +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmisleading-identation" +#endif struct cpu cpu IBSS_ATTR; bool plugbuf; @@ -1004,3 +1009,7 @@ next: } #endif /* ASM_CPU_EMULATE */ + +#if __GNUC__ >= 11 +#pragma GCC diagnostic pop +#endif -- cgit v1.2.3