Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jun 2024 21:50:52 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: c0c066f86dd1 - main - config: Remove redundant code
Message-ID:  <202406062150.456Loqn1058010@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=c0c066f86dd19c4802812b3ae28b019ca4909c56

commit c0c066f86dd19c4802812b3ae28b019ca4909c56
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-06-03 18:37:02 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-06-06 21:48:38 +0000

    config: Remove redundant code
    
    since errx is marked dead2, we don't need this.
    
    Noticed by:             jrtc27
    Sponsored by:           Netflix
---
 usr.sbin/config/config.y | 2 --
 1 file changed, 2 deletions(-)

diff --git a/usr.sbin/config/config.y b/usr.sbin/config/config.y
index 148959fbff2e..4120ffa54b1c 100644
--- a/usr.sbin/config/config.y
+++ b/usr.sbin/config/config.y
@@ -304,8 +304,6 @@ yyerror(const char *s)
 {
 
 	errx(1, "%s:%d: %s", yyfile, yyline + 1, s);
-	__unreachable();
-	return (0);
 }
 
 int



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406062150.456Loqn1058010>