From c4bd9eaf696e27ec594123b7111837e516fe8714 Mon Sep 17 00:00:00 2001 From: Tyler Wilding Date: Wed, 26 Aug 2020 20:38:42 -0400 Subject: [PATCH] __attribute__ is technically not required. We can probably replace this in a cross platform way like with clang-tidy? --- game/kernel/kprint.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/game/kernel/kprint.h b/game/kernel/kprint.h index ae95925154..049a66d35c 100644 --- a/game/kernel/kprint.h +++ b/game/kernel/kprint.h @@ -25,8 +25,6 @@ extern Ptr MessBufArea; extern Ptr OutputBufArea; extern Ptr PrintBufArea; -#define __attribute__(A) /* do nothing */ - /*! * Initialize global variables for kprint */ @@ -67,25 +65,25 @@ void output_segment_load(const char* name, Ptr link_block, u32 flags); /*! * Print to the GOAL print buffer from C */ -void cprintf(const char* format, ...) __attribute__((format(printf, 1, 2))); +void cprintf(const char* format, ...); /*! * Print directly to the C stdout * The "k" parameter is ignored, so this is just like printf */ -void Msg(s32 k, const char* format, ...) __attribute__((format(printf, 2, 3))); +void Msg(s32 k, const char* format, ...); /*! * Print directly to the C stdout * This is identical to Msg. */ -void MsgWarn(const char* format, ...) __attribute__((format(printf, 1, 2))); +void MsgWarn(const char* format, ...); /*! * Print directly to the C stdout * This is identical to Msg. */ -void MsgErr(const char* format, ...) __attribute__((format(printf, 1, 2))); +void MsgErr(const char* format, ...); /*! * Reverse string in place.