This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] sim/common/gentmap.c: Include "string.h".
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Chen Gang S <gang dot chen at sunrus dot com dot cn>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Fri, 13 Feb 2015 19:37:41 +0400
- Subject: Re: [PATCH] sim/common/gentmap.c: Include "string.h".
- Authentication-results: sourceware.org; auth=none
- References: <54DD1ED6 dot 2070100 at sunrus dot com dot cn>
On Fri, Feb 13, 2015 at 05:44:54AM +0800, Chen Gang S wrote:
> 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".
OK to push.
Thank you,
--
Joel