summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-04-23 08:45:33 -0400
committerSolomon Peachy <pizza@shaftnet.org>2021-04-23 08:45:33 -0400
commit0271c0ed36791df28d793a27926d83a72610f5ef (patch)
tree3b03bf3dbec4142e866d651d745d2813221bd958
parentebb9090004d332a66255e024e9e44f1ff2e7ee6e (diff)
downloadrockbox-0271c0ed36.tar.gz
rockbox-0271c0ed36.zip
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
-rw-r--r--apps/plugins/rockboy/cpu.c9
1 files changed, 9 insertions, 0 deletions
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