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 warning about _Complex long...
details: https://anonhg.NetBSD.org/src/rev/f80997139db0
branches: trunk
changeset: 1022402:f80997139db0
user: rillig <rillig%NetBSD.org@localhost>
date: Thu Jul 15 22:42:46 2021 +0000
description:
lint: remove warning about _Complex long double in traditional C
Complex types have been introduced in C99, so there is no danger of
anyone trying to use them in traditional C.
diffstat:
usr.bin/xlint/lint1/decl.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (28 lines):
diff -r 6e43329d132d -r f80997139db0 usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c Thu Jul 15 22:39:06 2021 +0000
+++ b/usr.bin/xlint/lint1/decl.c Thu Jul 15 22:42:46 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.201 2021/07/15 21:56:51 rillig Exp $ */
+/* $NetBSD: decl.c,v 1.202 2021/07/15 22:42:46 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.201 2021/07/15 21:56:51 rillig Exp $");
+__RCSID("$NetBSD: decl.c,v 1.202 2021/07/15 22:42:46 rillig Exp $");
#endif
#include <sys/param.h>
@@ -820,9 +820,6 @@
if (l == LONG) {
l = NOTSPEC;
t = LCOMPLEX;
- if (tflag)
- /* 'long double' is illegal in ... */
- warning(266);
}
break;
case VOID:
Home |
Main Index |
Thread Index |
Old Index