From: Keith Seitz <keiths@redhat.com>
To: insight <insight@sourceware.org>
Subject: [PATCH] Fix test suite compiler warnings
Date: Thu, 21 Feb 2008 00:28:00 -0000 [thread overview]
Message-ID: <47BCC541.5040500@redhat.com> (raw)
[-- 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[])
{
reply other threads:[~2008-02-21 0:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=47BCC541.5040500@redhat.com \
--to=keiths@redhat.com \
--cc=insight@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).