From 075909731b36bafd2146a6faba9978ec28a8951d Mon Sep 17 00:00:00 2001 From: Dave Love Date: Fri, 4 Feb 2000 17:56:46 +0000 Subject: [PATCH] Remove some unused vars. (_GNU_SOURCE): Define (for euidaccess). --- src/ChangeLog | 11 +++++++++++ src/fileio.c | 11 ++++------- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 0472f591024..470f5ec9aec 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,14 @@ +2000-02-04 Dave Love + + * fileio.c: Remove some unused vars. + (_GNU_SOURCE): Define (for euidaccess). + + * lread.c (_XOPEN_SOURCE): Declare (for ftello). + + * minibuf.c (read_minibuf_noninteractive): Remove undeclared + gcpro1, gcpro2. + (read_minibuf): Deal with allow_props correctly. + 2000-02-03 Eli Zaretskii * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000. diff --git a/src/fileio.c b/src/fileio.c index 127d883a044..814c1cd73fb 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -18,6 +18,8 @@ along with GNU Emacs; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#define _GNU_SOURCE /* for euidaccess */ + #include #if defined (USG5) || defined (BSD_SYSTEM) || defined (LINUX) @@ -3519,7 +3521,7 @@ actually used.") We assume that the 1K-byte and 3K-byte for heading and tailing respectively are sufficient for this purpose. */ - int how_many, nread; + int nread; if (st.st_size <= (1024 * 4)) nread = emacs_read (fd, read_buf, 1024 * 4); @@ -3540,7 +3542,6 @@ actually used.") XSTRING (orig_filename)->data, emacs_strerror (errno)); else if (nread > 0) { - int count = specpdl_ptr - specpdl; struct buffer *prev = current_buffer; record_unwind_protect (Fset_buffer, Fcurrent_buffer ()); @@ -4655,8 +4656,6 @@ This does code conversion according to the value of\n\ } else if (XINT (start) != XINT (end)) { - register int end1 = CHAR_TO_BYTE (XINT (end)); - tem = CHAR_TO_BYTE (XINT (start)); if (XINT (start) < GPT) @@ -4945,7 +4944,6 @@ e_write (desc, string, start, end, coding) register char *addr; register int nbytes; char buf[WRITE_BUF_SIZE]; - int composing = coding->composing; int return_val = 0; if (start >= end) @@ -5127,7 +5125,6 @@ auto_save_error () Lisp_Object auto_save_1 () { - unsigned char *fn; struct stat st; /* Get visited file's mode to become the auto save file's mode. */ @@ -5183,7 +5180,6 @@ A non-nil CURRENT-ONLY argument means save only current buffer.") FILE *stream; Lisp_Object lispstream; int count = specpdl_ptr - specpdl; - int *ptr; int orig_minibuffer_auto_raise = minibuffer_auto_raise; int message_p = push_message (); @@ -5933,3 +5929,4 @@ a non-nil value."); defsubr (&Sunix_sync); #endif } +(_GNU_SOURCE): -- 2.39.5