mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
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
This commit is contained in:
parent
ebb9090004
commit
0271c0ed36
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue