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 unreachable code from usual...
details: https://anonhg.NetBSD.org/src/rev/e6a8f274d1ba
branches: trunk
changeset: 984945:e6a8f274d1ba
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Aug 01 14:45:39 2021 +0000
description:
lint: remove unreachable code from usual arithmetic conversions
diffstat:
usr.bin/xlint/lint1/tree.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r 74d5f82f457d -r e6a8f274d1ba usr.bin/xlint/lint1/tree.c
--- a/usr.bin/xlint/lint1/tree.c Sun Aug 01 14:42:21 2021 +0000
+++ b/usr.bin/xlint/lint1/tree.c Sun Aug 01 14:45:39 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tree.c,v 1.323 2021/08/01 13:49:17 rillig Exp $ */
+/* $NetBSD: tree.c,v 1.324 2021/08/01 14:45:39 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: tree.c,v 1.323 2021/08/01 13:49:17 rillig Exp $");
+__RCSID("$NetBSD: tree.c,v 1.324 2021/08/01 14:45:39 rillig Exp $");
#endif
#include <float.h>
@@ -1782,8 +1782,6 @@
t = LCOMPLEX;
} else if (lt == DCOMPLEX || rt == DCOMPLEX) {
t = DCOMPLEX;
- } else if (lt == COMPLEX || rt == COMPLEX) {
- t = COMPLEX;
} else if (lt == FCOMPLEX || rt == FCOMPLEX) {
t = FCOMPLEX;
} else if (lt == LDOUBLE || rt == LDOUBLE) {
Home |
Main Index |
Thread Index |
Old Index