1
0
Fork 0
forked from len0rd/rockbox

coldfire: Silence a warning generated by GCC >= 9

Basically, there are weak aliases for all possible IRQ handlers,
pointing at a NORETURN function. GCC complains that the aliases
don't have the same attribute, but that's actually what we want.

Change-Id: I7f877e00193ed457589c8442db82e93ddea0d60a
This commit is contained in:
Solomon Peachy 2024-10-12 13:52:33 -04:00
parent 62d6c7ecaa
commit 6cb0bc3468

View file

@ -26,6 +26,11 @@
#include "lcd.h"
#include "font.h"
#if __GNUC__ >= 9
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmissing-attributes"
#endif
#define default_interrupt(name) \
extern __attribute__((weak,alias("UIE"))) void name (void)