Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint1 lint: remove unused function for generic...
details: https://anonhg.NetBSD.org/src/rev/a13c469090ed
branches: trunk
changeset: 1023276:a13c469090ed
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Aug 31 17:51:30 2021 +0000
description:
lint: remove unused function for generic messages
The function message_at is still used, for information about previous
occurrences of a symbol.
diffstat:
usr.bin/xlint/lint1/err.c | 14 ++------------
usr.bin/xlint/lint1/externs1.h | 3 +--
usr.bin/xlint/lint1/lint1.h | 3 +--
3 files changed, 4 insertions(+), 16 deletions(-)
diffs (69 lines):
diff -r 4506443a72e8 -r a13c469090ed usr.bin/xlint/lint1/err.c
--- a/usr.bin/xlint/lint1/err.c Tue Aug 31 17:22:24 2021 +0000
+++ b/usr.bin/xlint/lint1/err.c Tue Aug 31 17:51:30 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: err.c,v 1.141 2021/08/27 20:19:45 rillig Exp $ */
+/* $NetBSD: err.c,v 1.142 2021/08/31 17:51:30 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: err.c,v 1.141 2021/08/27 20:19:45 rillig Exp $");
+__RCSID("$NetBSD: err.c,v 1.142 2021/08/31 17:51:30 rillig Exp $");
#endif
#include <sys/types.h>
@@ -623,16 +623,6 @@
va_end(ap);
}
-void
-(message)(int msgid, ...)
-{
- va_list ap;
-
- va_start(ap, msgid);
- vmessage_at(msgid, &curr_pos, ap);
- va_end(ap);
-}
-
/*
* XXX I think the logic is possibly somewhat screwed up here. The
* question is, how do we want to interpret the -s and -S flags going
diff -r 4506443a72e8 -r a13c469090ed usr.bin/xlint/lint1/externs1.h
--- a/usr.bin/xlint/lint1/externs1.h Tue Aug 31 17:22:24 2021 +0000
+++ b/usr.bin/xlint/lint1/externs1.h Tue Aug 31 17:51:30 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: externs1.h,v 1.137 2021/08/29 15:49:04 rillig Exp $ */
+/* $NetBSD: externs1.h,v 1.138 2021/08/31 17:51:30 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -152,7 +152,6 @@
extern void message_at(int, const pos_t *, ...);
extern void error(int, ...);
extern void warning(int, ...);
-extern void message(int, ...);
extern void gnuism(int, ...);
extern void c99ism(int, ...);
extern void c11ism(int, ...);
diff -r 4506443a72e8 -r a13c469090ed usr.bin/xlint/lint1/lint1.h
--- a/usr.bin/xlint/lint1/lint1.h Tue Aug 31 17:22:24 2021 +0000
+++ b/usr.bin/xlint/lint1/lint1.h Tue Aug 31 17:51:30 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lint1.h,v 1.127 2021/08/28 12:41:03 rillig Exp $ */
+/* $NetBSD: lint1.h,v 1.128 2021/08/31 17:51:30 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -518,7 +518,6 @@
# define error(msgid, args...) wrap_check_printf(error, msgid, ##args)
# define warning(msgid, args...) wrap_check_printf(warning, msgid, ##args)
-# define message(msgid, args...) wrap_check_printf(message, msgid, ##args)
# define gnuism(msgid, args...) wrap_check_printf(gnuism, msgid, ##args)
# define c99ism(msgid, args...) wrap_check_printf(c99ism, msgid, ##args)
# define c11ism(msgid, args...) wrap_check_printf(c11ism, msgid, ##args)
Home |
Main Index |
Thread Index |
Old Index