This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
[PATCH] Fix test suite compiler warnings
- From: Keith Seitz <keiths at redhat dot com>
- To: insight <insight at sourceware dot org>
- Date: Wed, 20 Feb 2008 16:26:41 -0800
- Subject: [PATCH] Fix test suite compiler warnings
Hi,
I've committed the following patch which eradicates some compiler
warnings in the test suite.
My thanks to Markus Deuling for pointing these out.
Keith
ChangeLog
2008-02-20 Keith Seitz <keiths@redhat.com>
* stack1.c: Include stdlib.h
* simple.c: Likewise.
Include string.h.
Index: stack1.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.gdbtk/stack1.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 stack1.c
--- stack1.c 7 Feb 2000 00:19:45 -0000 1.1.1.1
+++ stack1.c 21 Feb 2008 00:24:24 -0000
@@ -1,3 +1,5 @@
+#include <stdlib.h>
+
/* Functions defined in other files */
extern void extern_func1_1 (int a, char *b, unsigned long c);
Index: simple.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.gdbtk/simple.c,v
retrieving revision 1.2
diff -u -p -r1.2 simple.c
--- simple.c 10 Sep 2002 02:13:16 -0000 1.2
+++ simple.c 21 Feb 2008 00:24:24 -0000
@@ -1,3 +1,6 @@
+#include <string.h>
+#include <stdlib.h>
+
int
main(int argc, char * argv[])
{