]> git.eshelyaron.com Git - emacs.git/commitdiff
* unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]:
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 30 Mar 2011 00:19:27 +0000 (17:19 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 30 Mar 2011 00:19:27 +0000 (17:19 -0700)
Remove unused local var.

src/ChangeLog
src/unexelf.c

index 2f88aa5ad07c4dd12430411c74324bdf9cc03a6b..c44444a9244788fd50f8843df8b31a760da2ddff 100644 (file)
@@ -1,5 +1,8 @@
 2011-03-30  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]:
+       Remove unused local var.
+
        * editfns.c (Fmessage_box): Remove unused local var.
 
 2011-03-29  Paul Eggert  <eggert@cs.ucla.edu>
index b58c78501b886bbc460a2c86b4e88c0dc1b15f7a..8b45894f853fb35ccdb5ef15a52e4b182581a456 100644 (file)
@@ -651,7 +651,9 @@ unexec (const char *new_name, const char *old_name)
   int n, nn;
   int old_bss_index, old_sbss_index, old_plt_index;
   int old_data_index, new_data2_index;
+#if defined _SYSTYPE_SYSV || defined __sgi
   int old_mdebug_index;
+#endif
   struct stat stat_buf;
   int old_file_size;
 
@@ -695,8 +697,10 @@ unexec (const char *new_name, const char *old_name)
 
   /* Find the mdebug section, if any.  */
 
+#if defined _SYSTYPE_SYSV || defined __sgi
   old_mdebug_index = find_section (".mdebug", old_section_names,
                                   old_name, old_file_h, old_section_h, 1);
+#endif
 
   /* Find the old .bss section.  Figure out parameters of the new
      data2 and bss sections.  */