This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How do I code a command decoder without warnings?

Hi,

this is a part of my command decoder:

const char Command_D[] = {"D"}; //Command in Memory
u8 In_Command[17]; //Command from USART

if (strcmp(Command_D, In_Command) == 0) { Run_Dump(); }

The code is compiled correctly and even works correctly, but the compiler says:

warning: #167-D: argument of type "unsigned char *" is incompatible with parameter of type "const char *"

I don't want to see a warning for each command to be
decoded. So how can I work around this issue?