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: rename parameter in function 'expr'
details: https://anonhg.NetBSD.org/src/rev/620fcad4d28a
branches: trunk
changeset: 959894:620fcad4d28a
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Feb 28 03:33:18 2021 +0000
description:
lint: rename parameter in function 'expr'
For symmetry with the function is_constcond_false.
No functional change.
diffstat:
usr.bin/xlint/lint1/tree.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 46b60cc75bb5 -r 620fcad4d28a usr.bin/xlint/lint1/tree.c
--- a/usr.bin/xlint/lint1/tree.c Sun Feb 28 03:29:12 2021 +0000
+++ b/usr.bin/xlint/lint1/tree.c Sun Feb 28 03:33:18 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tree.c,v 1.225 2021/02/28 02:00:05 rillig Exp $ */
+/* $NetBSD: tree.c,v 1.226 2021/02/28 03:33:18 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.225 2021/02/28 02:00:05 rillig Exp $");
+__RCSID("$NetBSD: tree.c,v 1.226 2021/02/28 03:33:18 rillig Exp $");
#endif
#include <float.h>
@@ -3738,7 +3738,7 @@
* memory which is used for the expression.
*/
void
-expr(tnode_t *tn, bool vctx, bool tctx, bool dofreeblk, bool constcond_zero_ok)
+expr(tnode_t *tn, bool vctx, bool tctx, bool dofreeblk, bool constcond_false_ok)
{
lint_assert(tn != NULL || nerr != 0);
@@ -3759,7 +3759,7 @@
warning(159);
} else if (tn->tn_op == CON) {
if (hflag && tctx && !constcond_flag &&
- !(constcond_zero_ok &&
+ !(constcond_false_ok &&
is_constcond_false(tn, tn->tn_type->t_tspec)))
/* constant in conditional context */
warning(161);
Home |
Main Index |
Thread Index |
Old Index