From: aleph Date: Tue, 13 Jul 2004 19:21:28 +0000 (+0000) Subject: Avoid warning for unused arg when compiled without some CONFIG_KERN_xx options X-Git-Tag: 1.0.0~1196 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=1ca35a617bc991a7eb1145bf15a19d00ea579882;p=bertos.git Avoid warning for unused arg when compiled without some CONFIG_KERN_xx options git-svn-id: https://src.develer.com/svnoss/bertos/trunk@45 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/kern/proc.c b/kern/proc.c index b735846d..99f844bf 100755 --- a/kern/proc.c +++ b/kern/proc.c @@ -17,6 +17,9 @@ /* * $Log$ + * Revision 1.4 2004/07/13 19:21:28 aleph + * Avoid warning for unused arg when compiled without some CONFIG_KERN_xx options + * * Revision 1.3 2004/06/06 18:37:57 bernie * Rename event macros to look like regular functions. * @@ -69,6 +72,9 @@ struct Process MainProcess; static void proc_init_struct(Process* proc) { + /* Avoid warning for unused argument */ + (void)proc; + #if CONFIG_KERN_TIMER event_initSignal(&proc->proc_timer.expire, proc, SIG_SINGLE); #endif