Module Name: src Committed By: christos Date: Mon Dec 7 03:01:15 UTC 2020
Modified Files: src/sys/kern: kern_time.c Log Message: fix the build; gcc does not always see that it can't happen. To generate a diff of this commit: cvs rdiff -u -r1.208 -r1.209 src/sys/kern/kern_time.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/kern_time.c diff -u src/sys/kern/kern_time.c:1.208 src/sys/kern/kern_time.c:1.209 --- src/sys/kern/kern_time.c:1.208 Sun Dec 6 08:45:58 2020 +++ src/sys/kern/kern_time.c Sun Dec 6 22:01:15 2020 @@ -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 @@ dosetitimer(struct proc *p, int which, s 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;