From bd71da714e2103ad871f6aead7838882f8c87b2c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 7 Apr 1997 21:30:42 +0000 Subject: [PATCH] removed noreturn attribute to eliminate warnings. --- c/src/exec/libcsupport/include/rtems/error.h | 9 +++++++-- c/src/lib/include/rtems/error.h | 9 +++++++-- c/src/lib/libc/error.h | 9 +++++++-- c/src/lib/libmisc/error/error.h | 9 +++++++-- c/src/libmisc/error/error.h | 9 +++++++-- cpukit/libcsupport/include/rtems/error.h | 9 +++++++-- 6 files changed, 42 insertions(+), 12 deletions(-) diff --git a/c/src/exec/libcsupport/include/rtems/error.h b/c/src/exec/libcsupport/include/rtems/error.h index e4d8c77200..a0698afb5d 100644 --- a/c/src/exec/libcsupport/include/rtems/error.h +++ b/c/src/exec/libcsupport/include/rtems/error.h @@ -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 diff --git a/c/src/lib/include/rtems/error.h b/c/src/lib/include/rtems/error.h index e4d8c77200..a0698afb5d 100644 --- a/c/src/lib/include/rtems/error.h +++ b/c/src/lib/include/rtems/error.h @@ -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 diff --git a/c/src/lib/libc/error.h b/c/src/lib/libc/error.h index e4d8c77200..a0698afb5d 100644 --- a/c/src/lib/libc/error.h +++ b/c/src/lib/libc/error.h @@ -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 diff --git a/c/src/lib/libmisc/error/error.h b/c/src/lib/libmisc/error/error.h index e4d8c77200..a0698afb5d 100644 --- a/c/src/lib/libmisc/error/error.h +++ b/c/src/lib/libmisc/error/error.h @@ -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 diff --git a/c/src/libmisc/error/error.h b/c/src/libmisc/error/error.h index e4d8c77200..a0698afb5d 100644 --- a/c/src/libmisc/error/error.h +++ b/c/src/libmisc/error/error.h @@ -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 diff --git a/cpukit/libcsupport/include/rtems/error.h b/cpukit/libcsupport/include/rtems/error.h index e4d8c77200..a0698afb5d 100644 --- a/cpukit/libcsupport/include/rtems/error.h +++ b/cpukit/libcsupport/include/rtems/error.h @@ -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