From ac4f9aa0a5e2119057b33e54ac7ee9fa47f38d37 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Tue, 2 Aug 2011 09:45:12 +0000 Subject: [PATCH] Fix a few compiler warnings in utils when compiled with GCC. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1534 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Demo/Common/Utils/CommandInterpreter.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Demo/Common/Utils/CommandInterpreter.c b/Demo/Common/Utils/CommandInterpreter.c index deba12961..9001d549e 100644 --- a/Demo/Common/Utils/CommandInterpreter.c +++ b/Demo/Common/Utils/CommandInterpreter.c @@ -51,8 +51,14 @@ licensing and training services. */ +/* Standard includes. */ +#include + +/* FreeRTOS includes. */ #include "FreeRTOS.h" #include "task.h" + +/* Utils includes. */ #include "CommandInterpreter.h" typedef struct xCOMMAND_INPUT_LIST @@ -71,8 +77,8 @@ static const signed char *prvHelpCommand( void ); of the list of registered commands. */ static const xCommandLineInput xHelpCommand = { - "help", - "help: Lists all the registered commands\r\n", + ( const signed char * const ) "help", + ( const signed char * const ) "help: Lists all the registered commands\r\n", prvHelpCommand }; @@ -163,7 +169,7 @@ signed const char *pcReturn = NULL; } else { - pcReturn = "Command not recognised. Available commands are listed below.\r\n\r\n"; + pcReturn = ( const signed char * const ) "Command not recognised. Available commands are listed below.\r\n\r\n"; /* Print out the help string. */ pxCommand = &xRegisteredCommands; -- 2.39.5