changed reboot to a macro to avoid the "noreturn returns" warning.

This commit is contained in:
Joel Sherrill
1996-06-18 19:06:19 +00:00
parent 7d74395fe9
commit c486e917b3
2 changed files with 10 additions and 1 deletions

View File

@@ -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_ */

View File

@@ -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_ */