This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob/patch] testsuite/gdb.arch/gdb1558.c: Include stdio.h.
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 2 Nov 2005 12:03:04 +0100
- Subject: [ob/patch] testsuite/gdb.arch/gdb1558.c: Include stdio.h.
- Reply-to: gdb-patches at sources dot redhat dot com
Hi,
I applied the below patch as obvious. Newer GCCs vehemently complain
about the missing printf prototype.
Corinna
* gdb.arch/gdb1558.c: Include stdio.h.
Index: gdb.arch/gdb1558.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/gdb1558.c,v
retrieving revision 1.1
diff -u -p -r1.1 gdb1558.c
--- gdb.arch/gdb1558.c 19 Feb 2004 22:55:50 -0000 1.1
+++ gdb.arch/gdb1558.c 2 Nov 2005 11:01:55 -0000
@@ -1,4 +1,4 @@
-/* Copyright 2004 Free Software Foundation, Inc.
+/* Copyright 2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -19,6 +19,8 @@
This file is part of the gdb testsuite. */
+#include <stdio.h>
+
sub1 ()
{
printf ("In sub1\n");
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.