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 redundant printf arguments
details: https://anonhg.NetBSD.org/src/rev/7952ed5be99b
branches: trunk
changeset: 1017576:7952ed5be99b
user: rillig <rillig%NetBSD.org@localhost>
date: Fri Jan 01 01:29:30 2021 +0000
description:
lint: remove redundant printf arguments
diffstat:
usr.bin/xlint/lint1/decl.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r ec672faaef84 -r 7952ed5be99b usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c Fri Jan 01 01:26:02 2021 +0000
+++ b/usr.bin/xlint/lint1/decl.c Fri Jan 01 01:29:30 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.89 2021/01/01 01:26:02 rillig Exp $ */
+/* $NetBSD: decl.c,v 1.90 2021/01/01 01:29:30 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: decl.c,v 1.89 2021/01/01 01:26:02 rillig Exp $");
+__RCSID("$NetBSD: decl.c,v 1.90 2021/01/01 01:29:30 rillig Exp $");
#endif
#include <sys/param.h>
@@ -1352,7 +1352,7 @@
n = 0;
} else if (n == 0 && dim) {
/* zero sized array is a C99 extension */
- c99ism(322, dim);
+ c99ism(322);
} else if (n == 0 && !dim) {
setcomplete(tp, 0);
}
@@ -3212,7 +3212,7 @@
cpos = curr_pos;
curr_pos = psym->s_def_pos;
if (msg != -1) {
- message(msg, psym->s_name);
+ message(msg);
} else if (psym->s_def == DEF || psym->s_def == TDEF) {
/* previous definition of %s */
message(261, psym->s_name);
Home |
Main Index |
Thread Index |
Old Index