Source-Changes-HG archive

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

[src/trunk]: src/sys/kern fix the build; gcc does not always see that it can'...



details:   https://anonhg.NetBSD.org/src/rev/2aea66ced193
branches:  trunk
changeset: 946740:2aea66ced193
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Dec 07 03:01:15 2020 +0000

description:
fix the build; gcc does not always see that it can't happen.

diffstat:

 sys/kern/kern_time.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 3d5cfab68447 -r 2aea66ced193 sys/kern/kern_time.c
--- a/sys/kern/kern_time.c      Mon Dec 07 01:50:19 2020 +0000
+++ b/sys/kern/kern_time.c      Mon Dec 07 03:01:15 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_time.c,v 1.208 2020/12/06 13:45:58 thorpej Exp $  */
+/*     $NetBSD: kern_time.c,v 1.209 2020/12/07 03:01:15 christos Exp $ */
 
 /*-
  * Copyright (c) 2000, 2004, 2005, 2007, 2008, 2009, 2020
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.208 2020/12/06 13:45:58 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_time.c,v 1.209 2020/12/07 03:01:15 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/resourcevar.h>
@@ -1649,6 +1649,8 @@
                        itl = &pts->pts_prof;
                        pt->pt_ev.sigev_signo = SIGPROF;
                        break;
+               default:
+                       panic("%s: can't happen %d", __func__, which);
                }
                itimer_init(it, &ptimer_itimer_ops, which, itl);
                pt->pt_proc = p;



Home | Main Index | Thread Index | Old Index