* [PATCH] Fix test suite compiler warnings
@ 2008-02-21 0:28 Keith Seitz
0 siblings, 0 replies; only message in thread
From: Keith Seitz @ 2008-02-21 0:28 UTC (permalink / raw)
To: insight
[-- Attachment #1: Type: text/plain, Size: 313 bytes --]
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.
[-- Attachment #2: test-includes.patch --]
[-- Type: text/x-patch, Size: 806 bytes --]
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[])
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-21 0:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-21 0:28 [PATCH] Fix test suite compiler warnings Keith Seitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).