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: inline macro c11flag



details:   https://anonhg.NetBSD.org/src/rev/1dd94e484f7d
branches:  trunk
changeset: 365880:1dd94e484f7d
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Apr 30 18:51:00 2022 +0000

description:
lint: inline macro c11flag

No functional change.

diffstat:

 usr.bin/xlint/lint1/err.c      |  6 +++---
 usr.bin/xlint/lint1/externs1.h |  3 +--
 2 files changed, 4 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r a1b8ac9a19fc -r 1dd94e484f7d usr.bin/xlint/lint1/err.c
--- a/usr.bin/xlint/lint1/err.c Sat Apr 30 17:09:44 2022 +0000
+++ b/usr.bin/xlint/lint1/err.c Sat Apr 30 18:51:00 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: err.c,v 1.162 2022/04/16 19:18:17 rillig Exp $ */
+/*     $NetBSD: err.c,v 1.163 2022/04/30 18:51:00 rillig Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: err.c,v 1.162 2022/04/16 19:18:17 rillig Exp $");
+__RCSID("$NetBSD: err.c,v 1.163 2022/04/30 18:51:00 rillig Exp $");
 #endif
 
 #include <sys/types.h>
@@ -650,7 +650,7 @@
        va_list ap;
 
        /* FIXME: C11 mode has nothing to do with GCC mode. */
-       if (c11flag || allow_gcc)
+       if (allow_c11 || allow_gcc)
                return;
        va_start(ap, msgid);
        verror_at(msgid, &curr_pos, ap);
diff -r a1b8ac9a19fc -r 1dd94e484f7d usr.bin/xlint/lint1/externs1.h
--- a/usr.bin/xlint/lint1/externs1.h    Sat Apr 30 17:09:44 2022 +0000
+++ b/usr.bin/xlint/lint1/externs1.h    Sat Apr 30 18:51:00 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: externs1.h,v 1.156 2022/04/16 19:18:17 rillig Exp $    */
+/*     $NetBSD: externs1.h,v 1.157 2022/04/30 18:51:00 rillig Exp $    */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -69,7 +69,6 @@
 #define tflag  (allow_trad && !allow_c90)
 #define sflag  (!allow_trad && !allow_c99)
 #define Sflag  allow_c99
-#define c11flag        allow_c11
 
 extern void    norecover(void);
 



Home | Main Index | Thread Index | Old Index