This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Don't include <malloc.h>
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 18 Feb 2004 18:24:55 +0100 (CET)
- Subject: [PATCH] Don't include <malloc.h>
Including <malloc.h> is a no-no. The FreeBSD <malloc.h> makes GCC
warn about its usage ("use <stdlib.h> instead") which makes a compile
with -Werror fail. This stuff should be handled properly by our
"defs.h" anyway.
Committed as obvious,
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* tui/tui.c: Don't include <malloc.h>.
Index: tui/tui.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui.c,v
retrieving revision 1.46
diff -u -p -r1.46 tui.c
--- tui/tui.c 10 Feb 2004 19:08:19 -0000 1.46
+++ tui/tui.c 18 Feb 2004 17:22:18 -0000
@@ -25,7 +25,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
-#include <malloc.h>
#ifdef HAVE_TERM_H
#include <term.h>
#endif