Skip to content

Commit

Permalink
lint: remove warning about _Complex long double in traditional C
Browse files Browse the repository at this point in the history
Complex types have been introduced in C99, so there is no danger of
anyone trying to use them in traditional C.
  • Loading branch information
rillig committed Jul 15, 2021
1 parent d2beceb commit b0cbdb6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions usr.bin/xlint/lint1/decl.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -820,9 +820,6 @@ end_type(void)
if (l == LONG) {
l = NOTSPEC;
t = LCOMPLEX;
if (tflag)
/* 'long double' is illegal in ... */
warning(266);
}
break;
case VOID:
Expand Down

0 comments on commit b0cbdb6

Please sign in to comment.