symtab.c: Add cast
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 26 Oct 2015 12:41:38 +0000 (08:41 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 26 Oct 2015 12:41:38 +0000 (08:41 -0400)
gdb/ChangeLog:

* symtab.c (default_make_symbol_completion_list_break_on_1): Add
cast.

gdb/ChangeLog
gdb/symtab.c

index 2fc3427..da09f5b 100644 (file)
@@ -1,5 +1,10 @@
 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
 
+       * symtab.c (default_make_symbol_completion_list_break_on_1): Add
+       cast.
+
+2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
+
        * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
        "data" local variable and use it.
 
index b0a16b6..16190c4 100644 (file)
@@ -5422,7 +5422,7 @@ default_make_symbol_completion_list_break_on_1 (const char *text,
       /* These languages may have parameters entered by user but they are never
         present in the partial symbol tables.  */
 
-      const char *cs = memchr (sym_text, '(', sym_text_len);
+      const char *cs = (const char *) memchr (sym_text, '(', sym_text_len);
 
       if (cs)
        sym_text_len = cs - sym_text;