This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Rtx51-tiny and Multiple call to segment warning

When I build the following program,I get a warning.

*** WARNING L15: MULTIPLE CALL TO SEGMENT
SEGMENT: ?PR?FUNC?H
CALLER1: ?PR?TASK1?H
CALLER2: ?PR?TASK2?H

The configuration of RTX51-Tiny is,

; Define Round-Robin Timeout in Hardware-Timer ticks.
TIMESHARING EQU 0 ; default is 5 Hardware-Timer ticks.
; ; 0 disables Round-Robin Task Switching
;

Will my program run correctly? How can I remove the warning?
Thanks.

hylnew@tom.com

////////////////////////////////////////////////////////////
//filename: h.c
#include <rtx51tny.h>

//
unsigned char func(bit d)
{

 if(d)return (0);
 else return (1);
}

//
void init(void) _task_ 0
{
 os_create_task(1);
 os_create_task(2);
 os_delete_task(0);
}

//
void task1(void) _task_ 1
{
 while(1){
   os_wait(K_TMO,10,0);
   func(0);
 }
}

//
void task2(void) _task_ 2
{
 while(1){
   os_wait(K_TMO,10,0);
   func(1);
 }
}
////////////////////////////////////////////////////////////