From 585a269afbfdb71b99ae72c22ef5101a800d565c Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 26 Oct 2015 08:41:38 -0400 Subject: [PATCH] symtab.c: Add cast gdb/ChangeLog: * symtab.c (default_make_symbol_completion_list_break_on_1): Add cast. --- gdb/ChangeLog | 5 +++++ gdb/symtab.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2fc3427565..da09f5be70 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-10-26 Simon Marchi + + * symtab.c (default_make_symbol_completion_list_break_on_1): Add + cast. + 2015-10-26 Simon Marchi * guile/scm-ports.c (gdbscm_memory_port_write): Declare new diff --git a/gdb/symtab.c b/gdb/symtab.c index b0a16b6e97..16190c4939 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;