diff options
Diffstat (limited to 'src/stubs.c')
| -rw-r--r-- | src/stubs.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/stubs.c b/src/stubs.c index 93fbe1099..fbc35b73d 100644 --- a/src/stubs.c +++ b/src/stubs.c @@ -1,10 +1,17 @@ #include <libultraship.h> +#include <macros.h> #include <libultraship/libultra.h> #include <string.h> #include <stdio.h> #include <stubs.h> #include "save.h" +// Everything here is a stub, so unused parameters are the norm; silence the +// warning once for the file instead of tagging every signature. +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#endif + struct state_pak { OSPfsState state; FILE* file; @@ -33,10 +40,9 @@ s32 osAiSetFrequency(u32 freq) { } void mio0decode(u8* arg0, u8* arg1) { - arg1 = arg0; } -s32 mio0encode(s32 input, s32 arg1, s32 arg2) { +s32 mio0encode(uintptr_t input, s32 arg1, uintptr_t arg2) { return 1; } |
