samples: cpp_synchronization: fix 'main' signature
'main' function should retun 'int' and not 'void'. Otherwise some picky compilers (like ARC MWDT) would warn about that. Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
This commit is contained in:
parent
967aaee361
commit
71025dd2d5
1 changed files with 3 additions and 1 deletions
|
@ -133,7 +133,7 @@ void coop_thread_entry(void)
|
|||
}
|
||||
}
|
||||
|
||||
void main(void)
|
||||
int main(void)
|
||||
{
|
||||
struct k_timer timer;
|
||||
|
||||
|
@ -154,4 +154,6 @@ void main(void)
|
|||
/* Wait for coop thread to let us have a turn */
|
||||
sem_main.wait();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue