From patchwork Mon Oct 26 03:46:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 9371 Received: (qmail 16181 invoked by alias); 26 Oct 2015 03:47:21 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 16100 invoked by uid 89); 26 Oct 2015 03:47:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL, BAYES_00, SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: smtp.electronicbox.net Received: from smtp.electronicbox.net (HELO smtp.electronicbox.net) (96.127.255.83) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 26 Oct 2015 03:47:19 +0000 Received: from simark.lan. (cable-192.222.137.139.electronicbox.net [192.222.137.139]) by smtp.electronicbox.net (Postfix) with ESMTP id CA52D440E88; Sun, 25 Oct 2015 23:47:17 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH c++ 10/12] symtab.c: Add cast Date: Sun, 25 Oct 2015 23:46:42 -0400 Message-Id: <1445831204-16588-10-git-send-email-simon.marchi@polymtl.ca> In-Reply-To: <1445831204-16588-1-git-send-email-simon.marchi@polymtl.ca> References: <1445831204-16588-1-git-send-email-simon.marchi@polymtl.ca> gdb/ChangeLog: * symtab.c (default_make_symbol_completion_list_break_on_1): Add cast. --- gdb/symtab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;