From a8377e933e74e819a62511e00aacdab7605a4e71 Mon Sep 17 00:00:00 2001 From: simonb Date: Sat, 20 May 2000 14:26:01 +0000 Subject: [PATCH] Don't define __inline as "/* delete GCC keyword */" if __lint__ is defined - lint(1) already knows about the __inline modifier. This stops lint from generating "static function ... unused" warnings for static __inline functions. --- sys/sys/cdefs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 58fc5683de6c..c0a93675576b 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -1,4 +1,4 @@ -/* $NetBSD: cdefs.h,v 1.34 2000/05/08 22:41:38 thorpej Exp $ */ +/* $NetBSD: cdefs.h,v 1.35 2000/05/20 14:26:01 simonb Exp $ */ /* * Copyright (c) 1991, 1993 @@ -97,9 +97,9 @@ #if defined(__cplusplus) #define __inline inline /* convert to C++ keyword */ #else -#ifndef __GNUC__ +#if !defined(__GNUC__) && !defined(__lint__) #define __inline /* delete GCC keyword */ -#endif /* !__GNUC__ */ +#endif /* !__GNUC__ && !__lint__ */ #endif /* !__cplusplus */ #else /* !(__STDC__ || __cplusplus) */