Mercurial > hg > xemacs-beta
diff src/unexec.c @ 2286:04bc9d2f42c7
[xemacs-hg @ 2004-09-20 19:18:55 by james]
Mark all unused parameters as unused. Also eliminate some unneeded local
variables.
author | james |
---|---|
date | Mon, 20 Sep 2004 19:20:08 +0000 |
parents | 4542b72c005e |
children | facf3239ba30 |
line wrap: on
line diff
--- a/src/unexec.c Mon Sep 20 19:11:29 2004 +0000 +++ b/src/unexec.c Mon Sep 20 19:20:08 2004 +0000 @@ -220,6 +220,8 @@ #include <fcntl.h> #endif +#include "compiler.h" + #ifndef O_RDONLY #define O_RDONLY 0 #endif @@ -227,7 +229,6 @@ #define O_RDWR 2 #endif - extern char *start_of_text (); /* Start of text */ extern void *start_of_data (); /* Start of initialized data */ @@ -812,7 +813,13 @@ * Copy the text and data segments from memory to the new a.out */ static int -copy_text_and_data (int new, int a_out) +copy_text_and_data (int new, +#if defined (COFF) && defined (USG_SHARED_LIBRARIES) + int a_out +#else + int UNUSED (a_out) +#endif + ) { char *end; char *ptr; @@ -1154,8 +1161,8 @@ int adjust_lnnoptrs (writedesc, readdesc, new_name) - int writedesc; - int readdesc; + int UNUSED (writedesc); + int UNUSED (readdesc); char *new_name; { int nsyms;