Module Name: src
Committed By: rillig
Date: Sun Jul 30 20:12:35 UTC 2023
Modified Files:
src/usr.bin/xlint/lint1: decl.c
Log Message:
lint: remove outdated comment (since decl.c 1.6 from 1995-10-02)
To generate a diff of this commit:
cvs rdiff -u -r1.367 -r1.368 src/usr.bin/xlint/lint1/decl.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/decl.c
diff -u src/usr.bin/xlint/lint1/decl.c:1.367 src/usr.bin/xlint/lint1/decl.c:1.368
--- src/usr.bin/xlint/lint1/decl.c:1.367 Sat Jul 29 11:03:18 2023
+++ src/usr.bin/xlint/lint1/decl.c Sun Jul 30 20:12:35 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.367 2023/07/29 11:03:18 rillig Exp $ */
+/* $NetBSD: decl.c,v 1.368 2023/07/30 20:12:35 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID)
-__RCSID("$NetBSD: decl.c,v 1.367 2023/07/29 11:03:18 rillig Exp $");
+__RCSID("$NetBSD: decl.c,v 1.368 2023/07/30 20:12:35 rillig Exp $");
#endif
#include <sys/param.h>
@@ -1868,12 +1868,6 @@ check_old_style_definition(sym_t *rdsym,
int n = 1;
while (narg-- > 0) {
bool dowarn = false;
- /*
- * If it does not match due to promotion and lint runs in
- * "traditional to C90" migration mode, print only a warning.
- *
- * XXX: Where is this "only a warning"?
- */
if (!types_compatible(arg->s_type, parg->s_type,
true, true, &dowarn) ||
dowarn) {