From 4c88a43f42196a5af1f26b420097759d5485cb35 Mon Sep 17 00:00:00 2001 From: Henny022p Date: Sun, 9 Mar 2025 14:32:04 +0000 Subject: [PATCH] disable PACKED and ALIGNED in CLion CLion does not like these macros when doing static analysis, so disable them for that. Does not affect build. --- include/gba/defines.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/gba/defines.h b/include/gba/defines.h index a135969e..73802774 100644 --- a/include/gba/defines.h +++ b/include/gba/defines.h @@ -16,9 +16,13 @@ #define NAKED __attribute__((naked)) #define UNUSED __attribute__((unused)) +#ifdef __CLION_IDE__ +#define PACKED +#define ALIGNED(n) +#else #define PACKED __attribute__((packed)) - #define ALIGNED(n) __attribute__((aligned(n))) +#endif #define SOUND_INFO_PTR (*(struct SoundInfo**)0x3007FF0) #define INTR_CHECK (*(u16*)0x3007FF8)