diff options
| author | Eli Zaretskii | 2016-09-14 20:46:59 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2016-09-14 20:46:59 +0300 |
| commit | fc77d04659f0be28041da9f924ec3525f1c3cdeb (patch) | |
| tree | 118b3f57f3b0787fcc188692c9cf54fcb2418d71 /src | |
| parent | 5ad238bf28f67304b942f03d3d5fc8d14d1268a8 (diff) | |
| download | emacs-fc77d04659f0be28041da9f924ec3525f1c3cdeb.tar.gz emacs-fc77d04659f0be28041da9f924ec3525f1c3cdeb.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c index b4316b3da98..5fe04114a4a 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, | |||
| 1834 | } | 1834 | } |
| 1835 | } | 1835 | } |
| 1836 | 1836 | ||
| 1837 | #ifndef WINDOWSNT | ||
| 1837 | /* Copy data to DEST from SOURCE if possible. Return true if OK. */ | 1838 | /* Copy data to DEST from SOURCE if possible. Return true if OK. */ |
| 1838 | static bool | 1839 | static bool |
| 1839 | clone_file (int dest, int source) | 1840 | clone_file (int dest, int source) |
| @@ -1843,6 +1844,7 @@ clone_file (int dest, int source) | |||
| 1843 | #endif | 1844 | #endif |
| 1844 | return false; | 1845 | return false; |
| 1845 | } | 1846 | } |
| 1847 | #endif | ||
| 1846 | 1848 | ||
| 1847 | DEFUN ("copy-file", Fcopy_file, Scopy_file, 2, 6, | 1849 | DEFUN ("copy-file", Fcopy_file, Scopy_file, 2, 6, |
| 1848 | "fCopy file: \nGCopy %s to file: \np\nP", | 1850 | "fCopy file: \nGCopy %s to file: \np\nP", |