summaryrefslogtreecommitdiff
path: root/src/boot/O2
diff options
context:
space:
mode:
authorengineer124 <47598039+engineer124@users.noreply.github.com>2024-10-20 11:56:35 +1100
committerGitHub <noreply@github.com>2024-10-19 17:56:35 -0700
commit1b7c9ecb88fe542ebd383053f480b156ab832a5a (patch)
treec0d076e6fa6ed2ae957b13c1268bed1bc4e2c20f /src/boot/O2
parenteee5762a555379aa865765ee0414c6409903681e (diff)
FALLTHROUGH Attribute, switch cleanup (#1719)
* add fallthrough * attributes * fix warning
Diffstat (limited to 'src/boot/O2')
-rw-r--r--src/boot/O2/gfxprint.c2
-rw-r--r--src/boot/O2/padsetup.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/boot/O2/gfxprint.c b/src/boot/O2/gfxprint.c
index 38acfb952..c4294177c 100644
--- a/src/boot/O2/gfxprint.c
+++ b/src/boot/O2/gfxprint.c
@@ -1,4 +1,5 @@
#include "gfxprint.h"
+#include "attributes.h"
#define GFXP_FLAG_HIRAGANA (1 << 0)
#define GFXP_FLAG_RAINBOW (1 << 1)
@@ -139,6 +140,7 @@ void GfxPrint_PrintChar(GfxPrint* this, u8 c) {
case '\n':
this->posY += 32;
+ FALLTHROUGH;
case '\r':
this->posX = this->baseX;
break;
diff --git a/src/boot/O2/padsetup.c b/src/boot/O2/padsetup.c
index 9cef6f196..ebbb5d828 100644
--- a/src/boot/O2/padsetup.c
+++ b/src/boot/O2/padsetup.c
@@ -25,6 +25,7 @@ s32 PadSetup_Init(OSMesgQueue* mq, u8* outMask, OSContStatus* status) {
*outMask |= 1 << i;
}
break;
+
default:
break;
}