diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2015-10-26 08:41:38 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2015-10-26 08:41:38 -0400 |
commit | 585a269afbfdb71b99ae72c22ef5101a800d565c (patch) | |
tree | ab9f6d5376355994ee34131b0336bfb049f5bd6b | |
parent | e0dd41e9671fffc957c3d8f41adcd52274319f4f (diff) | |
download | gdb-585a269afbfdb71b99ae72c22ef5101a800d565c.zip gdb-585a269afbfdb71b99ae72c22ef5101a800d565c.tar.gz gdb-585a269afbfdb71b99ae72c22ef5101a800d565c.tar.bz2 |
symtab.c: Add cast
gdb/ChangeLog:
* symtab.c (default_make_symbol_completion_list_break_on_1): Add
cast.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/symtab.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2fc3427..da09f5b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/symtab.c b/gdb/symtab.c index b0a16b6..16190c4 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -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; |