From a9fcbf3e30952809381a62143248517c0f0c2c6d Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 22 Feb 2008 11:44:10 +0000 Subject: More PCC fixes. --- src/includes/rc-misc.h | 4 +++- src/libeinfo/einfo.h | 2 +- src/rc/_usage.c | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h index 59c3e397..78f0a23b 100644 --- a/src/includes/rc-misc.h +++ b/src/includes/rc-misc.h @@ -70,8 +70,10 @@ #ifdef lint # define _unused #endif -#if __GNUC__ > 2 || defined(__INTEL_COMPILER) || defined(__PCC__) +#if __GNUC__ > 2 || defined(__INTEL_COMPILER) # define _unused __attribute__((__unused__)) +#else +# define _unused #endif _unused static void *xmalloc (size_t size) diff --git a/src/libeinfo/einfo.h b/src/libeinfo/einfo.h index 49ef03fb..650bc680 100644 --- a/src/libeinfo/einfo.h +++ b/src/libeinfo/einfo.h @@ -27,7 +27,7 @@ #ifndef __EINFO_H__ #define __EINFO_H__ -#if defined(__GNUC__) || defined(__PCC__) +#if defined(__GNUC__) # define __EINFO_PRINTF __attribute__ ((__format__ (__printf__, 1, 2))) # define __EINFO_XPRINTF __attribute__ ((__noreturn__, __format__ (__printf__, 1, 2))) # define __EEND_PRINTF __attribute__ ((__format__ (__printf__, 2, 3))) diff --git a/src/rc/_usage.c b/src/rc/_usage.c index 6dcb63aa..5be2bcb3 100644 --- a/src/rc/_usage.c +++ b/src/rc/_usage.c @@ -27,8 +27,10 @@ #if lint # define _noreturn #endif -#if __GNUC__ > 2 || defined(__INTEL_COMPILER) || defined(__PCC__) +#if __GNUC__ > 2 || defined(__INTEL_COMPILER) # define _noreturn __attribute__ ((__noreturn__)) +#else +# define _noreturn #endif _noreturn static void usage (int exit_status) -- cgit v1.2.3