forked from Imagelibrary/rtems
removed noreturn from prototype to avoid warnings.
This commit is contained in:
@@ -40,6 +40,15 @@
|
|||||||
|
|
||||||
|
|
||||||
/* macros/functions */
|
/* macros/functions */
|
||||||
void reboot(void) __attribute__ ((noreturn));
|
|
||||||
|
/*
|
||||||
|
* This prototype really should have the noreturn attribute but
|
||||||
|
* that causes a warning since it appears that the routine does
|
||||||
|
* return.
|
||||||
|
*
|
||||||
|
* void reboot(void) __attribute__ ((noreturn));
|
||||||
|
*/
|
||||||
|
|
||||||
|
void reboot(void);
|
||||||
|
|
||||||
#endif /* _EFI332_H_ */
|
#endif /* _EFI332_H_ */
|
||||||
|
|||||||
@@ -10,7 +10,15 @@ char * const __env[]= {""};
|
|||||||
|
|
||||||
int main(const int argc, char * const argv[], char * const env[]);
|
int main(const int argc, char * const argv[], char * const env[]);
|
||||||
|
|
||||||
void dumby_start () __attribute__ ((noreturn));
|
/*
|
||||||
|
* This prototype really should have the noreturn attribute but
|
||||||
|
* that causes a warning since it appears that the routine does
|
||||||
|
* return.
|
||||||
|
*
|
||||||
|
* void dumby_start () __attribute__ ((noreturn));
|
||||||
|
*/
|
||||||
|
|
||||||
|
void dumby_start ();
|
||||||
void dumby_start() {
|
void dumby_start() {
|
||||||
|
|
||||||
/* We need to by-pass the link instruction since the RAM chip-
|
/* We need to by-pass the link instruction since the RAM chip-
|
||||||
|
|||||||
@@ -10,7 +10,15 @@ char * const __env[]= {""};
|
|||||||
|
|
||||||
int main(const int argc, char * const argv[], char * const env[]);
|
int main(const int argc, char * const argv[], char * const env[]);
|
||||||
|
|
||||||
void dumby_start () __attribute__ ((noreturn));
|
/*
|
||||||
|
* This prototype really should have the noreturn attribute but
|
||||||
|
* that causes a warning since it appears that the routine does
|
||||||
|
* return.
|
||||||
|
*
|
||||||
|
* void dumby_start () __attribute__ ((noreturn));
|
||||||
|
*/
|
||||||
|
|
||||||
|
void dumby_start ();
|
||||||
void dumby_start() {
|
void dumby_start() {
|
||||||
|
|
||||||
/* We need to by-pass the link instruction since the RAM chip-
|
/* We need to by-pass the link instruction since the RAM chip-
|
||||||
|
|||||||
@@ -16,7 +16,15 @@
|
|||||||
|
|
||||||
/* macro/function definitions */
|
/* macro/function definitions */
|
||||||
#if 0
|
#if 0
|
||||||
static void reboot(void) __attribute__ ((noreturn));
|
/*
|
||||||
|
* This prototype really should have the noreturn attribute but
|
||||||
|
* that causes a warning since it appears that the routine does
|
||||||
|
* return.
|
||||||
|
*
|
||||||
|
* void dumby_start () __attribute__ ((noreturn));
|
||||||
|
*/
|
||||||
|
|
||||||
|
static void reboot(void);
|
||||||
__inline__ static void reboot() {asm("trap #15");}
|
__inline__ static void reboot() {asm("trap #15");}
|
||||||
#else
|
#else
|
||||||
#define reboot() do {asm("trap #15");} while(0)
|
#define reboot() do {asm("trap #15");} while(0)
|
||||||
|
|||||||
@@ -13,7 +13,15 @@ char * const __env[]= {""};
|
|||||||
|
|
||||||
int main(const int argc, char * const argv[], char * const env[]);
|
int main(const int argc, char * const argv[], char * const env[]);
|
||||||
|
|
||||||
void dumby_start () __attribute__ ((noreturn));
|
/*
|
||||||
|
* This prototype really should have the noreturn attribute but
|
||||||
|
* that causes a warning since it appears that the routine does
|
||||||
|
* return.
|
||||||
|
*
|
||||||
|
* void dumby_start () __attribute__ ((noreturn));
|
||||||
|
*/
|
||||||
|
|
||||||
|
void dumby_start ();
|
||||||
void dumby_start() {
|
void dumby_start() {
|
||||||
|
|
||||||
/* We need to by-pass the link instruction since the RAM chip-
|
/* We need to by-pass the link instruction since the RAM chip-
|
||||||
|
|||||||
@@ -13,7 +13,15 @@ char * const __env[]= {""};
|
|||||||
|
|
||||||
int main(const int argc, char * const argv[], char * const env[]);
|
int main(const int argc, char * const argv[], char * const env[]);
|
||||||
|
|
||||||
void dumby_start () __attribute__ ((noreturn));
|
/*
|
||||||
|
* This prototype really should have the noreturn attribute but
|
||||||
|
* that causes a warning since it appears that the routine does
|
||||||
|
* return.
|
||||||
|
*
|
||||||
|
* void dumby_start () __attribute__ ((noreturn));
|
||||||
|
*/
|
||||||
|
|
||||||
|
void dumby_start ();
|
||||||
void dumby_start() {
|
void dumby_start() {
|
||||||
|
|
||||||
/* We need to by-pass the link instruction since the RAM chip-
|
/* We need to by-pass the link instruction since the RAM chip-
|
||||||
|
|||||||
Reference in New Issue
Block a user