From patchwork Thu Feb 12 21:44:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Chen Gang X-Patchwork-Id: 5061 Received: (qmail 11245 invoked by alias); 12 Feb 2015 21:37:12 -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 11231 invoked by uid 89); 12 Feb 2015 21:37:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, SPF_PASS, UNPARSEABLE_RELAY autolearn=ham version=3.3.2 X-HELO: out1134-233.mail.aliyun.com Received: from out1134-233.mail.aliyun.com (HELO out1134-233.mail.aliyun.com) (42.120.134.233) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Feb 2015 21:37:09 +0000 X-Alimail-AntiSpam: AC=CONTINUE; BC=0.1329916|-1; FP=0|0|0|0|0|-1|-1|-1; HT=r46d02013; MF=gang.chen@sunrus.com.cn; PH=DS; RN=1; RT=1; SR=0; Received: from ShengShiZhuChengdeMacBook-Pro.local(mailfrom:gang.chen@sunrus.com.cn ip:223.72.65.97) by smtp.aliyun-inc.com(10.194.100.23); Fri, 13 Feb 2015 05:37:05 +0800 Message-ID: <54DD1ED6.2070100@sunrus.com.cn> Date: Fri, 13 Feb 2015 05:44:54 +0800 From: Chen Gang S User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: "gdb-patches@sourceware.org" Subject: [PATCH] sim/common/gentmap.c: Include "string.h". The related warnings: gcc ../../../binutils-gdb/sim/mcore/../common/gentmap.c -o gentmap -g -O -I. -I../../../binutils-gdb/sim/mcore -I../common -I../../../binutils-gdb/sim/mcore/../common -I../../include -I../../../binutils-gdb/sim/mcore/../../include -I../../bfd -I../../../binutils-gdb/sim/mcore/../../bfd -I../../opcodes -I../../../binutils-gdb/sim/mcore/../../opcodes ../../../binutils-gdb/sim/mcore/../common/gentmap.c: In function ‘main’: ../../../binutils-gdb/sim/mcore/../common/gentmap.c:119:7: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration] if (strcmp (argv[1], "-h") == 0) ^ 2015-02-13 Chen Gang * gentmap.c: Include "string.h". --- sim/common/ChangeLog | 4 ++++ sim/common/gentmap.c | 1 + 2 files changed, 5 insertions(+) diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 0fdef42..7acc03c 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2015-02-13 Chen Gang + + * gentmap.c: Include "string.h". + 2015-01-07 Joel Brobecker * aclocal.m4, configure: Regenerate using automake 1.11.1. diff --git a/sim/common/gentmap.c b/sim/common/gentmap.c index 7efc6d3..1769c53 100644 --- a/sim/common/gentmap.c +++ b/sim/common/gentmap.c @@ -2,6 +2,7 @@ #include #include +#include struct tdefs { char *symbol;