From: Chen Gang S <gang.chen@sunrus.com.cn>
To: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: [PATCH] sim/common/gentmap.c: Include "string.h".
Date: Thu, 12 Feb 2015 21:37:00 -0000 [thread overview]
Message-ID: <54DD1ED6.2070100@sunrus.com.cn> (raw)
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 | 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 <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.
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 <stdio.h>
#include <stdlib.h>
+#include <string.h>
struct tdefs {
char *symbol;
--
1.9.3
next reply other threads:[~2015-02-12 21:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-12 21:37 Chen Gang S [this message]
2015-02-13 15:37 ` Joel Brobecker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54DD1ED6.2070100@sunrus.com.cn \
--to=gang.chen@sunrus.com.cn \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox