Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/include libc: remove special handling for lint
details: https://anonhg.NetBSD.org/src/rev/6daea054d9e7
branches: trunk
changeset: 984355:6daea054d9e7
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Jul 04 16:18:50 2021 +0000
description:
libc: remove special handling for lint
In namespace.h 1.102 from 2005-07-16, the #ifndef was added to fix the
broken lint2 pass. Somewhere between 2005 and now, lint has been
changed so that it does not need this workaround anymore.
After usr.bin/xlint/lint1/tree.c 1.303 from 2021-06-30, the #ifndef in
namespace.h caused the only warning about an implicit function
declaration in the whole NetBSD tree, in lib/libc/gen/sysconf.c:149,
where _getpagesize was not defined, but only getpagesize.
diffstat:
lib/libc/include/namespace.h | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r acfae1d658db -r 6daea054d9e7 lib/libc/include/namespace.h
--- a/lib/libc/include/namespace.h Sun Jul 04 13:44:43 2021 +0000
+++ b/lib/libc/include/namespace.h Sun Jul 04 16:18:50 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: namespace.h,v 1.200 2020/09/22 21:38:50 nia Exp $ */
+/* $NetBSD: namespace.h,v 1.201 2021/07/04 16:18:50 rillig Exp $ */
/*-
* Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
@@ -32,7 +32,6 @@
#include <sys/cdefs.h>
#include <ssp/ssp.h>
-#ifndef __lint__
#define aio_suspend _aio_suspend
#define brk _brk
#define catclose _catclose
@@ -961,6 +960,5 @@
#define __learn_tree ___learn_tree
#endif /* __weak_alias */
-#endif /* !__lint__ */
#endif /* _NAMESPACE_H_ */
Home |
Main Index |
Thread Index |
Old Index