This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
[PATCH] Fix a warning in testsuite/gdb.gdbtk/c_variable.c
- From: "Maciej W. Rozycki" <macro at mips dot com>
- To: insight at sourceware dot org
- Cc: "Maciej W. Rozycki" <macro at linux-mips dot org>
- Date: Wed, 27 Jun 2007 16:24:14 +0100 (BST)
- Subject: [PATCH] Fix a warning in testsuite/gdb.gdbtk/c_variable.c
Hello,
When running the test suite I get the following warning:
[...]/gdb/testsuite/gdb.gdbtk/c_variable.c: In function 'main':
[...]/gdb/testsuite/gdb.gdbtk/c_variable.c:293: warning: incompatible implicit declaration of built-in function 'exit'
2007-06-27 Maciej W. Rozycki <macro@mips.com>
* c_variable.c: Include <stdlib.h> for a declaration of exit().
Applied as obvious.
Maciej
gdbtk-c_variable-exit.diff
Index: binutils-quilt/src/gdb/testsuite/gdb.gdbtk/c_variable.c
===================================================================
--- binutils-quilt.orig/src/gdb/testsuite/gdb.gdbtk/c_variable.c 2007-03-28 13:40:26.000000000 +0100
+++ binutils-quilt/src/gdb/testsuite/gdb.gdbtk/c_variable.c 2007-03-28 13:40:45.000000000 +0100
@@ -1,3 +1,5 @@
+#include <stdlib.h>
+
struct _simple_struct {
int integer;
unsigned int unsigned_integer;