From: Juanma Barranquero Date: Mon, 30 Dec 2013 22:36:44 +0000 (+0100) Subject: src/fileio.c: Silence compiler warnings. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~126 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2db9da01bd31b9840ff859486bb4820dc7a837aa;p=emacs.git src/fileio.c: Silence compiler warnings. * fileio.c (Fcopy_file) [!WINDOWSNT]: Don't declare on Windows variables not used there. --- diff --git a/src/ChangeLog b/src/ChangeLog index 18d00ef7640..bfc4ac548c9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-12-30 Juanma Barranquero + + * fileio.c (Fcopy_file) [!WINDOWSNT]: Don't declare on Windows + variables not used there. + 2013-12-30 Eli Zaretskii * w32.c (sys_umask): New function. (Bug#16299) diff --git a/src/fileio.c b/src/fileio.c index adf69c6f234..6b40cad3fbb 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -1943,8 +1943,6 @@ permissions. */) struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; ptrdiff_t count = SPECPDL_INDEX (); Lisp_Object encoded_file, encoded_newname; - bool already_exists = false; - mode_t new_mask; #if HAVE_LIBSELINUX security_context_t con; int conlength = 0; @@ -1952,6 +1950,8 @@ permissions. */) #ifdef WINDOWSNT int result; #else + bool already_exists = false; + mode_t new_mask; int ifd, ofd; int n; char buf[16 * 1024];