Remove compile time warnings.
authorlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 25 Mar 2011 08:18:49 +0000 (08:18 +0000)
committerlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 25 Mar 2011 08:18:49 +0000 (08:18 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4808 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/net/lwip/src/arch/sys_arch.c

index e33f2364f54c4598947b0bc889e40e5787875bfd..61d91dc36a06debefec2775fb3870ee204e168fb 100644 (file)
@@ -380,6 +380,9 @@ sys_thread_t sys_thread_new(char *name, void (* thread)(void *arg),
 
        #if CONFIG_KERN_PRI
                proc_setPri(thread_node->pid, prio);
+       #else
+               /* Avoid warnings when priorities are disabled */
+               (void) prio;
        #endif
 
        return thread_node->pid;