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 internal_error
details: https://anonhg.NetBSD.org/src/rev/b6614dd3df25
branches: trunk
changeset: 373580:b6614dd3df25
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Feb 18 15:21:34 2023 +0000
description:
lint: remove unused internal_error
diffstat:
usr.bin/xlint/lint1/err.c | 22 ++--------------------
usr.bin/xlint/lint1/externs1.h | 4 +---
2 files changed, 3 insertions(+), 23 deletions(-)
diffs (61 lines):
diff -r 9ab1a1edf558 -r b6614dd3df25 usr.bin/xlint/lint1/err.c
--- a/usr.bin/xlint/lint1/err.c Sat Feb 18 15:18:49 2023 +0000
+++ b/usr.bin/xlint/lint1/err.c Sat Feb 18 15:21:34 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: err.c,v 1.186 2023/01/21 13:07:22 rillig Exp $ */
+/* $NetBSD: err.c,v 1.187 2023/02/18 15:21:34 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID)
-__RCSID("$NetBSD: err.c,v 1.186 2023/01/21 13:07:22 rillig Exp $");
+__RCSID("$NetBSD: err.c,v 1.187 2023/02/18 15:21:34 rillig Exp $");
#endif
#include <limits.h>
@@ -587,24 +587,6 @@
}
void
-internal_error(const char *file, int line, const char *msg, ...)
-{
- va_list ap;
- const char *fn;
-
- fn = lbasename(curr_pos.p_file);
- (void)fflush(stdout);
- (void)fprintf(stderr, "lint: internal error in %s:%d near %s:%d: ",
- file, line, fn, curr_pos.p_line);
- va_start(ap, msg);
- (void)vfprintf(stderr, msg, ap);
- va_end(ap);
- (void)fprintf(stderr, "\n");
- print_stack_trace();
- abort();
-}
-
-void
assert_failed(const char *file, int line, const char *func, const char *cond)
{
const char *fn;
diff -r 9ab1a1edf558 -r b6614dd3df25 usr.bin/xlint/lint1/externs1.h
--- a/usr.bin/xlint/lint1/externs1.h Sat Feb 18 15:18:49 2023 +0000
+++ b/usr.bin/xlint/lint1/externs1.h Sat Feb 18 15:21:34 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: externs1.h,v 1.173 2023/02/06 21:01:55 rillig Exp $ */
+/* $NetBSD: externs1.h,v 1.174 2023/02/18 15:21:34 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -164,8 +164,6 @@
extern bool gnuism(int, ...);
extern void c99ism(int, ...);
extern void c11ism(int, ...);
-extern void internal_error(const char *, int, const char *, ...)
- __attribute__((__noreturn__,__format__(__printf__, 3, 4)));
extern void assert_failed(const char *, int, const char *, const char *)
__attribute__((__noreturn__));
extern void update_location(const char *, int, bool, bool);
Home |
Main Index |
Thread Index |
Old Index