aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-02-22 11:44:10 +0000
committerRoy Marples <roy@marples.name>2008-02-22 11:44:10 +0000
commita9fcbf3e30952809381a62143248517c0f0c2c6d (patch)
treeebe8362c817a6255c2f33ccfdc0f20a3e6663f4e
parent5bb09b65871362f60b7facd6193638caeba31a49 (diff)
More PCC fixes.
-rw-r--r--src/includes/rc-misc.h4
-rw-r--r--src/libeinfo/einfo.h2
-rw-r--r--src/rc/_usage.c4
3 files changed, 7 insertions, 3 deletions
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)