From dc1d9d1fcbc719cd4377aa178703ad00b1d8a3ac Mon Sep 17 00:00:00 2001 From: Chen Gang Date: Fri, 13 Feb 2015 05:32:30 +0800 Subject: [PATCH] sim/common/gentmap.c: Include "string.h". MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 0fdef42ef6e..7acc03c99aa 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 7efc6d3b863..1769c53639c 100644 --- a/sim/common/gentmap.c +++ b/sim/common/gentmap.c @@ -2,6 +2,7 @@ #include #include +#include struct tdefs { char *symbol; -- 2.30.2