From efb16e80116c37eca3920e85378c6ff844a10653 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Mon, 21 Nov 2022 01:42:59 -0700 Subject: [PATCH] Fix arm9 compilation error with `-Os` --- arm9/source/nitrofs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arm9/source/nitrofs.c b/arm9/source/nitrofs.c index d4f04dd..39baf5a 100644 --- a/arm9/source/nitrofs.c +++ b/arm9/source/nitrofs.c @@ -101,7 +101,7 @@ devoptab_t nitroFSdevoptab = { //how to read the proper way can replace these 4 functions and everything should work normally :) //reads from rom image either gba rom or dldi -inline ssize_t nitroSubRead(off_t *npos, void *ptr, size_t len) +static inline ssize_t nitroSubRead(off_t *npos, void *ptr, size_t len) { if (ndsFile != NULL) { //read from ndsfile @@ -120,7 +120,7 @@ inline ssize_t nitroSubRead(off_t *npos, void *ptr, size_t len) } //seek around -inline void nitroSubSeek(off_t *npos, int pos, int dir) +static inline void nitroSubSeek(off_t *npos, int pos, int dir) { if ((dir == SEEK_SET) || (dir == SEEK_END)) //otherwise just set the pos :) *npos = pos;