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 Build breakage fix (hopefully) - brain d...



details:   https://anonhg.NetBSD.org/src/rev/d5decbdc0b23
branches:  trunk
changeset: 948824:d5decbdc0b23
user:      kre <kre%NetBSD.org@localhost>
date:      Fri Jan 01 13:43:34 2021 +0000

description:
Build breakage fix (hopefully) - brain dead gcc.   NFCI.

diffstat:

 usr.bin/xlint/lint1/decl.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 06dfe2d9075e -r d5decbdc0b23 usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c        Fri Jan 01 11:58:21 2021 +0000
+++ b/usr.bin/xlint/lint1/decl.c        Fri Jan 01 13:43:34 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.95 2021/01/01 11:51:15 rillig Exp $ */
+/* $NetBSD: decl.c,v 1.96 2021/01/01 13:43:34 kre 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.95 2021/01/01 11:51:15 rillig Exp $");
+__RCSID("$NetBSD: decl.c,v 1.96 2021/01/01 13:43:34 kre Exp $");
 #endif
 
 #include <sys/param.h>
@@ -616,6 +616,7 @@
                /* there is nothing after external declarations */
                lint_assert(0);
                /* NOTREACHED */
+               /* XXX gcc is stupid enough not to know that, hence: */ break;
        case MOS:
        case MOU:
        case ENUMCON:



Home | Main Index | Thread Index | Old Index