Add casts to memory allocation related calls
[deliverable/binutils-gdb.git] / gdb / cli / cli-script.c
index 1717240d68dcd7795b5007455ea61e30fa56ea25..624a493ddae762297793ebe94346ce3b8d5f2c00 100644 (file)
@@ -484,7 +484,7 @@ execute_control_command (struct command_line *cmd)
     case while_control:
       {
        int len = strlen (cmd->line) + 7;
-       char *buffer = alloca (len);
+       char *buffer = (char *) alloca (len);
 
        xsnprintf (buffer, len, "while %s", cmd->line);
        print_command_trace (buffer);
@@ -553,7 +553,7 @@ execute_control_command (struct command_line *cmd)
     case if_control:
       {
        int len = strlen (cmd->line) + 4;
-       char *buffer = alloca (len);
+       char *buffer = (char *) alloca (len);
 
        xsnprintf (buffer, len, "if %s", cmd->line);
        print_command_trace (buffer);
This page took 0.026166 seconds and 4 git commands to generate.