diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2021-04-23 08:45:33 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-04-23 08:45:33 -0400 |
commit | 0271c0ed36791df28d793a27926d83a72610f5ef (patch) | |
tree | 3b03bf3dbec4142e866d651d745d2813221bd958 | |
parent | ebb9090004d332a66255e024e9e44f1ff2e7ee6e (diff) | |
download | rockbox-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.c | 9 |
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 |