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 /apps/plugins | |
parent | ebb9090004d332a66255e024e9e44f1ff2e7ee6e (diff) | |
download | rockbox-0271c0ed36791df28d793a27926d83a72610f5ef.tar.gz rockbox-0271c0ed36791df28d793a27926d83a72610f5ef.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
Diffstat (limited to 'apps/plugins')
-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 @@ | |||
13 | #include "asm.h" | 13 | #include "asm.h" |
14 | #endif | 14 | #endif |
15 | 15 | ||
16 | /* GCC 11 complains about the code style. Just turn this off. */ | ||
17 | #if __GNUC__ >= 11 | ||
18 | #pragma GCC diagnostic push | ||
19 | #pragma GCC diagnostic ignored "-Wmisleading-identation" | ||
20 | #endif | ||
16 | 21 | ||
17 | struct cpu cpu IBSS_ATTR; | 22 | struct cpu cpu IBSS_ATTR; |
18 | bool plugbuf; | 23 | bool plugbuf; |
@@ -1004,3 +1009,7 @@ next: | |||
1004 | } | 1009 | } |
1005 | 1010 | ||
1006 | #endif /* ASM_CPU_EMULATE */ | 1011 | #endif /* ASM_CPU_EMULATE */ |
1012 | |||
1013 | #if __GNUC__ >= 11 | ||
1014 | #pragma GCC diagnostic pop | ||
1015 | #endif | ||