This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix compiler warning in i386bsd-tdep.c
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 5 Jul 2002 00:59:59 +0200 (CEST)
- Subject: [PATCH] Fix compiler warning in i386bsd-tdep.c
For some particular reason the stock FreeBSD 4.4-RELEASE GCC 2.95.3
doesn't warn about a missing strcmp() prototype, but my current GCC
3.1.1 snapshot does.
Checked in.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* i386bsd-tdep.c: Include "gdb_string.h".
Index: i386bsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386bsd-tdep.c,v
retrieving revision 1.7
diff -u -p -r1.7 i386bsd-tdep.c
--- i386bsd-tdep.c 4 Jul 2002 15:13:27 -0000 1.7
+++ i386bsd-tdep.c 4 Jul 2002 22:52:42 -0000
@@ -24,6 +24,8 @@
#include "gdbcore.h"
#include "regcache.h"
+#include "gdb_string.h"
+
#include "i386-tdep.h"
/* Support for signal handlers. */