]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim/common/gentmap.c: Include "string.h".
authorChen Gang <gang.chen.5i5j@gmail.com>
Thu, 12 Feb 2015 21:32:30 +0000 (05:32 +0800)
committerChen Gang <gang.chen.5i5j@gmail.com>
Fri, 13 Feb 2015 16:11:34 +0000 (00:11 +0800)
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  <gang.chen.5i5j@gmail.com>

*  gentmap.c: Include "string.h".

sim/common/ChangeLog
sim/common/gentmap.c

index 0fdef42ef6eaca467a9d7ee53cbf3db6977bdb88..7acc03c99aae30c43440b8e3d49daf3aff2358e6 100644 (file)
@@ -1,3 +1,7 @@
+2015-02-13  Chen Gang  <gang.chen.5i5j@gmail.com>
+
+       *  gentmap.c: Include "string.h".
+
 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
 
        * aclocal.m4, configure: Regenerate using automake 1.11.1.
index 7efc6d3b8634c2c5f64a051da6c5258f677cdc69..1769c53639c5ea615a67dd7ed4ae88cc41851d37 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 struct tdefs {
   char *symbol;