From 649a71055294e9fa275ebb406361cf46c843cade Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 22 Jan 2008 11:07:39 +0000 Subject: Quiet some more lint warnings. --- src/rc/_usage.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/rc/_usage.c') diff --git a/src/rc/_usage.c b/src/rc/_usage.c index 57cdb9a4..0e39271d 100644 --- a/src/rc/_usage.c +++ b/src/rc/_usage.c @@ -24,8 +24,14 @@ * SUCH DAMAGE. */ -__attribute__ ((__noreturn__)) -static void usage (int exit_status) +#if lint +# define _noreturn +#endif +#if __GNUC__ > 2 || defined(__INTEL_COMPILER) +# define _noreturn __attribute__ ((__noreturn__)) +#endif + +_noreturn static void usage (int exit_status) { const char * const has_arg[] = { "", "", "[arg]" }; int i; -- cgit v1.2.3