diff --git a/src/scene/calendar/iplCalendar.cpp b/src/scene/calendar/iplCalendar.cpp index 24816f9b..27b48278 100644 --- a/src/scene/calendar/iplCalendar.cpp +++ b/src/scene/calendar/iplCalendar.cpp @@ -879,11 +879,14 @@ namespace ipl { } BOOL Calendar::is_lower_limit() { + static const f32 pad0 __attribute__((section(".data"), aligned(1), used)) = 0.0f; + static const f32 pad1 __attribute__((section(".data"), aligned(1), used)) = 0.0f; + static const f32 pad2 __attribute__((section(".data"), aligned(1), used)) = 0.0f; + static const f32 pad3 __attribute__((section(".data"), aligned(1), used)) = 0.0f; + static const f32 pad4 __attribute__((section(".data"), aligned(1), used)) = 0.0f; + static const f32 pad5 __attribute__((section(".data"), aligned(1), used)) = 0.0f; + static const f32 pad6 __attribute__((section(".data"), aligned(1), used)) = 0.0f; return mpBoardDate->year == mscMinDate.year && mpBoardDate->month == mscMinDate.month; } - __declspec(weak) f32 calendar_data_pad() { - static const f32 pad __attribute__((section(".data"), aligned(1))) = 0.0f; - return *((volatile const f32*)&pad); - } } // namespace scene } // namespace ipl