forked from Imagelibrary/rtems
changed reboot to a macro to avoid the "noreturn returns" warning.
This commit is contained in:
@@ -40,7 +40,11 @@
|
||||
|
||||
|
||||
/* macros/functions */
|
||||
#if 0
|
||||
static void reboot(void) __attribute__ ((noreturn));
|
||||
__inline__ static void reboot() {asm("trap #15");}
|
||||
#else
|
||||
#define reboot() do {asm("trap #15");} while(0)
|
||||
#endif
|
||||
|
||||
#endif /* _EFI332_H_ */
|
||||
|
||||
@@ -15,7 +15,12 @@
|
||||
|
||||
|
||||
/* macro/function definitions */
|
||||
#if 0
|
||||
static void reboot(void) __attribute__ ((noreturn));
|
||||
__inline__ static void reboot(void) {asm("trap #15");}
|
||||
__inline__ static void reboot() {asm("trap #15");}
|
||||
#else
|
||||
#define reboot() do {asm("trap #15");} while(0)
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _EFI68k_H_ */
|
||||
|
||||
Reference in New Issue
Block a user