]> git.sur5r.net Git - freertos/blobdiff - Demo/Common/Minimal/death.c
Get rid of compiler warnings.
[freertos] / Demo / Common / Minimal / death.c
index a3d849e97c6e947497047bf14842d1b1716f7514..de57696105dbf7600a8f7bc99fbc7cecab0f01c0 100644 (file)
@@ -110,7 +110,7 @@ unsigned portBASE_TYPE *puxPriority;
        puxPriority = ( unsigned portBASE_TYPE * ) pvPortMalloc( sizeof( unsigned portBASE_TYPE ) );\r
        *puxPriority = uxPriority;\r
 \r
-       xTaskCreate( vCreateTasks, "CREATOR", deathSTACK_SIZE, ( void * ) puxPriority, uxPriority, NULL );\r
+       xTaskCreate( vCreateTasks, ( signed portCHAR * ) "CREATOR", deathSTACK_SIZE, ( void * ) puxPriority, uxPriority, NULL );\r
 \r
        /* Record the number of tasks that are running now so we know if any of the\r
        suicidal tasks have failed to be killed. */\r
@@ -177,11 +177,11 @@ unsigned portBASE_TYPE uxPriority;
                /* Just loop round, delaying then creating the four suicidal tasks. */\r
                vTaskDelay( xDelay );\r
 \r
-               xTaskCreate( vSuicidalTask, "SUICID1", deathSTACK_SIZE, NULL, uxPriority, &xCreatedTask1 );\r
-               xTaskCreate( vSuicidalTask, "SUICID2", deathSTACK_SIZE, &xCreatedTask1, uxPriority, NULL );\r
+               xTaskCreate( vSuicidalTask, ( signed portCHAR * ) "SUICID1", deathSTACK_SIZE, NULL, uxPriority, &xCreatedTask1 );\r
+               xTaskCreate( vSuicidalTask, ( signed portCHAR * ) "SUICID2", deathSTACK_SIZE, &xCreatedTask1, uxPriority, NULL );\r
 \r
-               xTaskCreate( vSuicidalTask, "SUICID1", deathSTACK_SIZE, NULL, uxPriority, &xCreatedTask2 );\r
-               xTaskCreate( vSuicidalTask, "SUICID2", deathSTACK_SIZE, &xCreatedTask2, uxPriority, NULL );\r
+               xTaskCreate( vSuicidalTask, ( signed portCHAR * ) "SUICID1", deathSTACK_SIZE, NULL, uxPriority, &xCreatedTask2 );\r
+               xTaskCreate( vSuicidalTask, ( signed portCHAR * ) "SUICID2", deathSTACK_SIZE, &xCreatedTask2, uxPriority, NULL );\r
 \r
                ++usCreationCount;\r
        }\r