]> git.eshelyaron.com Git - emacs.git/commitdiff
src/fileio.c: Silence compiler warnings.
authorJuanma Barranquero <lekktu@gmail.com>
Mon, 30 Dec 2013 22:36:44 +0000 (23:36 +0100)
committerJuanma Barranquero <lekktu@gmail.com>
Mon, 30 Dec 2013 22:36:44 +0000 (23:36 +0100)
* fileio.c (Fcopy_file) [!WINDOWSNT]: Don't declare on Windows
variables not used there.

src/ChangeLog
src/fileio.c

index 18d00ef7640af38ceebc5f05e82d7f1cbc744143..bfc4ac548c9424b500e0ffbd18862ad266d95e0a 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-30  Juanma Barranquero  <lekktu@gmail.com>
+
+       * fileio.c (Fcopy_file) [!WINDOWSNT]: Don't declare on Windows
+       variables not used there.
+
 2013-12-30  Eli Zaretskii  <eliz@gnu.org>
 
        * w32.c (sys_umask): New function.  (Bug#16299)
index adf69c6f23446abc5032a2cbc4fc9247657fa328..6b40cad3fbb5d6fa8720947bde61bfa6a45d5e66 100644 (file)
@@ -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];