diff options
| author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-08-10 11:49:06 +0200 |
|---|---|---|
| committer | Austin Foxley <austinf@cetoncorp.com> | 2009-08-19 12:57:45 -0700 |
| commit | f78e994833726e628bb6931b9ca98ed663d270a4 (patch) | |
| tree | 70c75f35fd7da5a0a75984830b619fe839852465 | |
| parent | 8417f43c0b3d2fc554e770a8fd48bf6f9809b800 (diff) | |
| download | uClibc-alpine-f78e994833726e628bb6931b9ca98ed663d270a4.tar.bz2 uClibc-alpine-f78e994833726e628bb6931b9ca98ed663d270a4.tar.xz | |
define attribute_noreturn
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
| -rw-r--r-- | utils/ldconfig.c | 6 | ||||
| -rw-r--r-- | utils/porting.h | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/utils/ldconfig.c b/utils/ldconfig.c index 0d7092b3e..a25de260a 100644 --- a/utils/ldconfig.c +++ b/utils/ldconfig.c @@ -114,7 +114,8 @@ static void warnx(const char *s, ...) fprintf(stderr, "\n"); } -static attribute_noreturn void err(int errnum, const char *s, ...) +static void err(int errnum, const char *s, ...) attribute_noreturn; +static void err(int errnum, const char *s, ...) { va_list p; @@ -783,7 +784,8 @@ void cache_print(void) } #endif -static attribute_noreturn void usage(void) +static void usage(void) attribute_noreturn; +static void usage(void) { fprintf(stderr, #ifdef __LDSO_CACHE_SUPPORT__ diff --git a/utils/porting.h b/utils/porting.h index 6bb7fa91f..b0d1f1af9 100644 --- a/utils/porting.h +++ b/utils/porting.h @@ -72,4 +72,10 @@ # error "Unknown host byte order!" #endif +#if defined __GNUC__ || defined __ICC +# define attribute_noreturn __attribute__ ((__noreturn__)) +#else +# define attribute_noreturn +#endif + #endif |
