cpp_synchronization: fix main() definition

C++ standard mandates that main() return an 'int' even though
Zephyr does not use it. Fix build error with XCC compiler.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
diff --git a/samples/cpp_synchronization/src/main.cpp b/samples/cpp_synchronization/src/main.cpp
index fe928f0..7c1cdc4 100644
--- a/samples/cpp_synchronization/src/main.cpp
+++ b/samples/cpp_synchronization/src/main.cpp
@@ -133,7 +133,7 @@
 	}
 }
 
-void main(void)
+int main(void)
 {
 	struct k_timer timer;
 
@@ -154,4 +154,6 @@
 		/* Wait for coop thread to let us have a turn */
 		sem_main.wait();
 	}
+
+	return 0;
 }