Fix reliability issues in CMake sample (#835)

* Fix reliability issues in CMake example sample.
diff --git a/cmake_example/main.c b/cmake_example/main.c
index f0eaf1c..d00aeae 100644
--- a/cmake_example/main.c
+++ b/cmake_example/main.c
@@ -52,6 +52,9 @@
 
 void exampleTask( void * parameters )
 {
+    /* Unused parameters. */
+    ( void ) parameters;
+
     for( ; ; )
     {
         /* Example Task Code */
@@ -59,7 +62,7 @@
     }
 }
 
-int main( void )
+void main( void )
 {
     printf( "Example FreeRTOS Project\n" );
 
@@ -71,19 +74,22 @@
                        exampleTaskStack,
                        &exampleTaskTCB );
 
+    /* Start the scheduler. */
     vTaskStartScheduler();
 
-    /* should never get here. */
     for( ; ; )
     {
+        /* Should not reach here. */
     }
-
-    return 0;
 }
 
 void vApplicationStackOverflowHook( TaskHandle_t xTask,
                                     char * pcTaskName )
 {
+    /* Check pcTaskName for the name of the offending task,
+     * or pxCurrentTCB if pcTaskName has itself been corrupted. */
+    ( void ) xTask;
+    ( void ) pcTaskName;
 }
 
 void vApplicationGetTimerTaskMemory( StaticTask_t ** ppxTimerTaskTCBBuffer,