Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/gmon shut up lint
details: https://anonhg.NetBSD.org/src/rev/ac642dca0581
branches: trunk
changeset: 778148:ac642dca0581
user: martin <martin%NetBSD.org@localhost>
date: Sat Mar 17 21:40:21 2012 +0000
description:
shut up lint
diffstat:
common/lib/libc/gmon/mcount.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (48 lines):
diff -r eb575b8e600d -r ac642dca0581 common/lib/libc/gmon/mcount.c
--- a/common/lib/libc/gmon/mcount.c Sat Mar 17 21:35:06 2012 +0000
+++ b/common/lib/libc/gmon/mcount.c Sat Mar 17 21:40:21 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mcount.c,v 1.8 2009/01/05 18:06:57 pooka Exp $ */
+/* $NetBSD: mcount.c,v 1.9 2012/03/17 21:40:21 martin Exp $ */
/*
* Copyright (c) 2003, 2004 Wasabi Systems, Inc.
@@ -76,7 +76,7 @@
#if 0
static char sccsid[] = "@(#)mcount.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: mcount.c,v 1.8 2009/01/05 18:06:57 pooka Exp $");
+__RCSID("$NetBSD: mcount.c,v 1.9 2012/03/17 21:40:21 martin Exp $");
#endif
#endif
@@ -93,11 +93,13 @@
struct gmonparam *_m_gmon_alloc(void);
#endif
+#ifndef __LINT__
_MCOUNT_DECL __P((u_long, u_long))
#ifdef _KERNEL
__attribute__((__no_instrument_function__))
#endif
__used;
+#endif
/* XXX: make these interfaces */
#ifdef _RUMPKERNEL
@@ -124,6 +126,7 @@
* both frompcindex and frompc. Any reasonable, modern compiler will
* perform this optimization.
*/
+#ifndef __LINT__
_MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */
u_long frompc, selfpc;
{
@@ -258,6 +261,7 @@
#endif
return;
}
+#endif
#ifdef MCOUNT
/*
Home |
Main Index |
Thread Index |
Old Index