[PATCH] Fix a warning in testsuite/gdb.gdbtk/c_variable.c

Maciej W. Rozycki macro@mips.com
Wed Jun 27 15:24:00 GMT 2007


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;



More information about the Insight mailing list