From 71025dd2d5ec6a28332cfcefb0bde703d4b6d98d Mon Sep 17 00:00:00 2001 From: Eugeniy Paltsev Date: Tue, 19 Jan 2021 16:32:26 +0300 Subject: [PATCH] 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 --- samples/cpp_synchronization/src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/cpp_synchronization/src/main.cpp b/samples/cpp_synchronization/src/main.cpp index 7a204696ce9..7f67b4ce6f7 100644 --- a/samples/cpp_synchronization/src/main.cpp +++ b/samples/cpp_synchronization/src/main.cpp @@ -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; }