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 long list of node types in ...
details: https://anonhg.NetBSD.org/src/rev/d3e4874f8e37
branches: trunk
changeset: 366412:d3e4874f8e37
user: rillig <rillig%NetBSD.org@localhost>
date: Thu May 26 06:43:58 2022 +0000
description:
lint: remove long list of node types in switch statement
No functional change.
diffstat:
usr.bin/xlint/lint1/tree.c | 43 +++----------------------------------------
1 files changed, 3 insertions(+), 40 deletions(-)
diffs (64 lines):
diff -r ce3b02cb861c -r d3e4874f8e37 usr.bin/xlint/lint1/tree.c
--- a/usr.bin/xlint/lint1/tree.c Thu May 26 06:33:03 2022 +0000
+++ b/usr.bin/xlint/lint1/tree.c Thu May 26 06:43:58 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tree.c,v 1.442 2022/05/20 21:18:55 rillig Exp $ */
+/* $NetBSD: tree.c,v 1.443 2022/05/26 06:43:58 rillig Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID)
-__RCSID("$NetBSD: tree.c,v 1.442 2022/05/20 21:18:55 rillig Exp $");
+__RCSID("$NetBSD: tree.c,v 1.443 2022/05/26 06:43:58 rillig Exp $");
#endif
#include <float.h>
@@ -4166,44 +4166,7 @@
case NAME:
case STRING:
return false;
- /* LINTED206: (enumeration values not handled in switch) */
- case BITOR:
- case BITXOR:
- case NE:
- case GE:
- case GT:
- case LE:
- case LT:
- case SHR:
- case SHL:
- case MINUS:
- case PLUS:
- case MOD:
- case DIV:
- case MULT:
- case INDIR:
- case UMINUS:
- case UPLUS:
- case DEC:
- case INC:
- case COMPL:
- case NOT:
- case POINT:
- case ARROW:
- case NOOP:
- case BITAND:
- case FARG:
- case CASE:
- case INIT:
- case RETURN:
- case ICALL:
- case CVT:
- case COMMA:
- case FSEL:
- case COLON:
- case QUEST:
- case LOGOR:
- case LOGAND:
+ default:
break;
}
return true;
Home |
Main Index |
Thread Index |
Old Index