This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
gcc-2.95 fixinc/server.c warning fixes
- To: egcs-patches at egcs dot cygnus dot com (egcs-patches at egcs dot cygnus dot com)
- Subject: gcc-2.95 fixinc/server.c warning fixes
- From: "Philippe De Muyter" <phdm at macqel dot be>
- Date: Sun, 6 Jun 1999 04:22:56 +0200 (CEST)
Sun Jun 6 03:59:00 1999 Philippe De Muyter <phdm@macqel.be>
* fixinc/server.c (server_setup): Do not prefix function used as
parameter with `&'.
* system.h (malloc, realloc): New external function declarations.
--- ./gcc/fixinc/server.c Sun Jun 6 04:23:05 1999
+++ ./gcc/fixinc/server.c Sun Jun 6 03:58:46 1999
@@ -220,7 +220,7 @@ server_setup ()
static int atexit_done = 0;
if (atexit_done++ == 0)
- atexit (&close_server);
+ atexit (close_server);
signal (SIGPIPE, sig_handler);
signal (SIGALRM, sig_handler);
--- ./gcc/system.h Sun Jun 6 04:23:06 1999
+++ ./gcc/system.h Sun Jun 6 03:57:43 1999
@@ -326,8 +326,14 @@
extern char *getwd ();
#endif
+#ifdef NEED_DECLARATION_MALLOC
+extern char *malloc ();
+#endif
+
+#ifdef NEED_DECLARATION_REALLOC
+extern char *realloc ();
+#endif
+
#ifdef NEED_DECLARATION_SBRK
extern char *sbrk ();
#endif