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: document why an unreachable statem...



details:   https://anonhg.NetBSD.org/src/rev/ba1fa32d549e
branches:  trunk
changeset: 953816:ba1fa32d549e
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Mar 21 12:10:27 2021 +0000

description:
lint: document why an unreachable statement is set to reachable

No functional change.

diffstat:

 usr.bin/xlint/lint1/func.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 57aafc2069ac -r ba1fa32d549e usr.bin/xlint/lint1/func.c
--- a/usr.bin/xlint/lint1/func.c        Sun Mar 21 12:08:34 2021 +0000
+++ b/usr.bin/xlint/lint1/func.c        Sun Mar 21 12:10:27 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: func.c,v 1.85 2021/03/21 12:08:34 rillig Exp $ */
+/*     $NetBSD: func.c,v 1.86 2021/03/21 12:10:27 rillig Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: func.c,v 1.85 2021/03/21 12:08:34 rillig Exp $");
+__RCSID("$NetBSD: func.c,v 1.86 2021/03/21 12:10:27 rillig Exp $");
 #endif
 
 #include <stdlib.h>
@@ -196,7 +196,7 @@
        if (!reached && !rchflg) {
                /* statement not reached */
                warning(193);
-               reached = true;
+               reached = true; /* only to suppress further warnings */
        }
 }
 



Home | Main Index | Thread Index | Old Index