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.
This commit is contained in:
parent
5ad238bf28
commit
fc77d04659
1 changed files with 2 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue