From: bernie Date: Mon, 25 Aug 2008 11:36:03 +0000 (+0000) Subject: proc_setPri(): nop fallback when priorities are disabled X-Git-Tag: 2.0.0~247 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=2fd9ef1b509baed0c97876e1f517125db9f78f96;p=bertos.git proc_setPri(): nop fallback when priorities are disabled git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1687 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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 /**