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.
This commit is contained in:
parent
17c567f9de
commit
a8377e933e
@ -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
|
* Copyright (c) 1991, 1993
|
||||||
@ -97,9 +97,9 @@
|
|||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
#define __inline inline /* convert to C++ keyword */
|
#define __inline inline /* convert to C++ keyword */
|
||||||
#else
|
#else
|
||||||
#ifndef __GNUC__
|
#if !defined(__GNUC__) && !defined(__lint__)
|
||||||
#define __inline /* delete GCC keyword */
|
#define __inline /* delete GCC keyword */
|
||||||
#endif /* !__GNUC__ */
|
#endif /* !__GNUC__ && !__lint__ */
|
||||||
#endif /* !__cplusplus */
|
#endif /* !__cplusplus */
|
||||||
|
|
||||||
#else /* !(__STDC__ || __cplusplus) */
|
#else /* !(__STDC__ || __cplusplus) */
|
||||||
|
Loading…
Reference in New Issue
Block a user