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/aa54c32edcf7
branches:  trunk
changeset: 981799:aa54c32edcf7
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 46377987a883 -r aa54c32edcf7 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