Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Don't define __inline as "/* delete GCC keyword */" ...



details:   https://anonhg.NetBSD.org/src/rev/0f3b03b55e0a
branches:  trunk
changeset: 486377:0f3b03b55e0a
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat May 20 14:26:01 2000 +0000

description:
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.

diffstat:

 sys/sys/cdefs.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 41c0b3a3b82b -r 0f3b03b55e0a sys/sys/cdefs.h
--- a/sys/sys/cdefs.h   Sat May 20 14:23:12 2000 +0000
+++ b/sys/sys/cdefs.h   Sat May 20 14:26:01 2000 +0000
@@ -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) */



Home | Main Index | Thread Index | Old Index