Module Name:    src
Committed By:   rillig
Date:           Thu May 26 06:43:58 UTC 2022

Modified Files:
        src/usr.bin/xlint/lint1: tree.c

Log Message:
lint: remove long list of node types in switch statement

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.442 -r1.443 src/usr.bin/xlint/lint1/tree.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/xlint/lint1/tree.c
diff -u src/usr.bin/xlint/lint1/tree.c:1.442 src/usr.bin/xlint/lint1/tree.c:1.443
--- src/usr.bin/xlint/lint1/tree.c:1.442	Fri May 20 21:18:55 2022
+++ src/usr.bin/xlint/lint1/tree.c	Thu May 26 06:43:58 2022
@@ -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 @@ check_expr_op(const tnode_t *tn, op_t op
 	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;

Reply via email to