removed noreturn attribute to eliminate warnings.

This commit is contained in:
Joel Sherrill
1997-04-07 21:30:42 +00:00
parent 82478528de
commit bd71da714e
6 changed files with 42 additions and 12 deletions

View File

@@ -21,8 +21,13 @@
const char *rtems_status_text(rtems_status_code);
int rtems_error(int error_code, const char *printf_format, ...);
#ifdef __GNUC__
void rtems_panic(const char *printf_format, ...)
__attribute__ ((__noreturn__));
void rtems_panic(const char *printf_format, ...);
/*
* We should be able to use this attribute but gcc complains that
* rtems_panic does in fact return. :(
*
* __attribute__ ((__noreturn__));
*/
#else
void rtems_panic(const char *printf_format, ...);
#endif

View File

@@ -21,8 +21,13 @@
const char *rtems_status_text(rtems_status_code);
int rtems_error(int error_code, const char *printf_format, ...);
#ifdef __GNUC__
void rtems_panic(const char *printf_format, ...)
__attribute__ ((__noreturn__));
void rtems_panic(const char *printf_format, ...);
/*
* We should be able to use this attribute but gcc complains that
* rtems_panic does in fact return. :(
*
* __attribute__ ((__noreturn__));
*/
#else
void rtems_panic(const char *printf_format, ...);
#endif

View File

@@ -21,8 +21,13 @@
const char *rtems_status_text(rtems_status_code);
int rtems_error(int error_code, const char *printf_format, ...);
#ifdef __GNUC__
void rtems_panic(const char *printf_format, ...)
__attribute__ ((__noreturn__));
void rtems_panic(const char *printf_format, ...);
/*
* We should be able to use this attribute but gcc complains that
* rtems_panic does in fact return. :(
*
* __attribute__ ((__noreturn__));
*/
#else
void rtems_panic(const char *printf_format, ...);
#endif

View File

@@ -21,8 +21,13 @@
const char *rtems_status_text(rtems_status_code);
int rtems_error(int error_code, const char *printf_format, ...);
#ifdef __GNUC__
void rtems_panic(const char *printf_format, ...)
__attribute__ ((__noreturn__));
void rtems_panic(const char *printf_format, ...);
/*
* We should be able to use this attribute but gcc complains that
* rtems_panic does in fact return. :(
*
* __attribute__ ((__noreturn__));
*/
#else
void rtems_panic(const char *printf_format, ...);
#endif

View File

@@ -21,8 +21,13 @@
const char *rtems_status_text(rtems_status_code);
int rtems_error(int error_code, const char *printf_format, ...);
#ifdef __GNUC__
void rtems_panic(const char *printf_format, ...)
__attribute__ ((__noreturn__));
void rtems_panic(const char *printf_format, ...);
/*
* We should be able to use this attribute but gcc complains that
* rtems_panic does in fact return. :(
*
* __attribute__ ((__noreturn__));
*/
#else
void rtems_panic(const char *printf_format, ...);
#endif

View File

@@ -21,8 +21,13 @@
const char *rtems_status_text(rtems_status_code);
int rtems_error(int error_code, const char *printf_format, ...);
#ifdef __GNUC__
void rtems_panic(const char *printf_format, ...)
__attribute__ ((__noreturn__));
void rtems_panic(const char *printf_format, ...);
/*
* We should be able to use this attribute but gcc complains that
* rtems_panic does in fact return. :(
*
* __attribute__ ((__noreturn__));
*/
#else
void rtems_panic(const char *printf_format, ...);
#endif