From: Chen Gang Date: Thu, 12 Feb 2015 21:32:30 +0000 (+0800) Subject: sim/common/gentmap.c: Include "string.h". X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc1d9d1fcbc719cd4377aa178703ad00b1d8a3ac;p=binutils-gdb.git 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". --- 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;