summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1996-06-10 19:26:51 +0000
committerniklas <niklas@openbsd.org>1996-06-10 19:26:51 +0000
commita28bc86bd9c93256d64798c3414c8f749181bb42 (patch)
tree7ff57e96064338852a72c95161068bb055eb763d
parentReintroduce the long patch(1) options (diff)
downloadwireguard-openbsd-a28bc86bd9c93256d64798c3414c8f749181bb42.tar.xz
wireguard-openbsd-a28bc86bd9c93256d64798c3414c8f749181bb42.zip
If we use GCC, tell the compiler that scheduler() do not return
-rw-r--r--sys/vm/vm_extern.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/vm/vm_extern.h b/sys/vm/vm_extern.h
index 1ea3a70ff4e..64a732b223d 100644
--- a/sys/vm/vm_extern.h
+++ b/sys/vm/vm_extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_extern.h,v 1.5 1996/05/02 13:21:11 deraadt Exp $ */
+/* $OpenBSD: vm_extern.h,v 1.6 1996/06/10 19:26:51 niklas Exp $ */
/* $NetBSD: vm_extern.h,v 1.20 1996/04/23 12:25:23 christos Exp $ */
/*-
@@ -83,7 +83,11 @@ void loadav __P((struct loadavg *));
void munmapfd __P((struct proc *, int));
int pager_cache __P((vm_object_t, boolean_t));
void sched __P((void));
+#ifdef __GNUC__
+void scheduler __P((void)) __attribute ((noreturn));
+#else
void scheduler __P((void));
+#endif
int svm_allocate __P((struct proc *, void *, int *));
int svm_deallocate __P((struct proc *, void *, int *));
int svm_inherit __P((struct proc *, void *, int *));