From 2fd9ef1b509baed0c97876e1f517125db9f78f96 Mon Sep 17 00:00:00 2001 From: bernie Date: Mon, 25 Aug 2008 11:36:03 +0000 Subject: [PATCH] proc_setPri(): nop fallback when priorities are disabled git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1687 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/kern/proc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bertos/kern/proc.h b/bertos/kern/proc.h index 8a18bf74..6a4aff8b 100644 --- a/bertos/kern/proc.h +++ b/bertos/kern/proc.h @@ -78,7 +78,11 @@ const char *proc_name(struct Process *proc); const char *proc_currentName(void); #if CONFIG_KERN_PRI -void proc_setPri(struct Process *proc, int pri); + void proc_setPri(struct Process *proc, int pri); +#else + INLINE void proc_setPri(UNUSED_ARG(struct Process *,proc), UNUSED_ARG(int, pri)) + { + } #endif /** -- 2.25.1