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:
Eugeniy Paltsev 2021-01-19 16:32:26 +03:00 committed by Anas Nashif
commit 71025dd2d5

View file

@ -133,7 +133,7 @@ void coop_thread_entry(void)
} }
} }
void main(void) int main(void)
{ {
struct k_timer timer; struct k_timer timer;
@ -154,4 +154,6 @@ void main(void)
/* Wait for coop thread to let us have a turn */ /* Wait for coop thread to let us have a turn */
sem_main.wait(); sem_main.wait();
} }
return 0;
} }