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:
Solomon Peachy 2021-04-23 08:45:33 -04:00
parent ebb9090004
commit 0271c0ed36

View file

@ -13,6 +13,11 @@
#include "asm.h" #include "asm.h"
#endif #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; struct cpu cpu IBSS_ATTR;
bool plugbuf; bool plugbuf;
@ -1004,3 +1009,7 @@ next:
} }
#endif /* ASM_CPU_EMULATE */ #endif /* ASM_CPU_EMULATE */
#if __GNUC__ >= 11
#pragma GCC diagnostic pop
#endif