[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master fc77d04: Avoid compiler warning on MS-Windows due t
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master fc77d04: Avoid compiler warning on MS-Windows due to clone_file |
Date: |
Wed, 14 Sep 2016 17:48:29 +0000 (UTC) |
branch: master
commit fc77d04659f0be28041da9f924ec3525f1c3cdeb
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Avoid compiler warning on MS-Windows due to clone_file
* src/fileio.c (clone_file): Condition on !WINDOWSNT, since the
call to it is not compiled in that build, and having it defined
causes compiler warnings.
---
src/fileio.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/fileio.c b/src/fileio.c
index b4316b3..5fe0411 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -1834,6 +1834,7 @@ barf_or_query_if_file_exists (Lisp_Object absname, bool
known_to_exist,
}
}
+#ifndef WINDOWSNT
/* Copy data to DEST from SOURCE if possible. Return true if OK. */
static bool
clone_file (int dest, int source)
@@ -1843,6 +1844,7 @@ clone_file (int dest, int source)
#endif
return false;
}
+#endif
DEFUN ("copy-file", Fcopy_file, Scopy_file, 2, 6,
"fCopy file: \nGCopy %s to file: \np\nP",
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master fc77d04: Avoid compiler warning on MS-Windows due to clone_file,
Eli Zaretskii <=