Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/error can't happen, but gcc can't figure it out.



details:   https://anonhg.NetBSD.org/src/rev/7ca981a4f75f
branches:  trunk
changeset: 1004122:7ca981a4f75f
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 13 20:43:25 2019 +0000

description:
can't happen, but gcc can't figure it out.

diffstat:

 usr.bin/error/touch.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r f2ec22961620 -r 7ca981a4f75f usr.bin/error/touch.c
--- a/usr.bin/error/touch.c     Sun Oct 13 20:18:42 2019 +0000
+++ b/usr.bin/error/touch.c     Sun Oct 13 20:43:25 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: touch.c,v 1.27 2012/02/29 23:37:07 joerg Exp $ */
+/*     $NetBSD: touch.c,v 1.28 2019/10/13 20:43:25 christos Exp $      */
 
 /*
  * Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)touch.c    8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: touch.c,v 1.27 2012/02/29 23:37:07 joerg Exp $");
+__RCSID("$NetBSD: touch.c,v 1.28 2019/10/13 20:43:25 christos Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -738,6 +738,8 @@
                case Q_no:
                        mustwrite(base + nwrote, n - nwrote, preciousfile);
                        return (1);
+               default:
+                       abort();
                }
        case Q_error:
        default:



Home | Main Index | Thread Index | Old Index