emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 480da9f: Avoid compiler warning in copy-file-range.


From: Eli Zaretskii
Subject: [Emacs-diffs] master 480da9f: Avoid compiler warning in copy-file-range.c on MS-Windows
Date: Fri, 7 Jun 2019 04:17:07 -0400 (EDT)

branch: master
commit 480da9f2216d16fb30f42e7e2e40774cf2ea48b7
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Avoid compiler warning in copy-file-range.c on MS-Windows
    
    * nt/mingw-cfg.site (gl_cv_func_copy_file_range): Set to "yes",
    to avoid compiling lib/copy-file-range.c on MS-Windows.
---
 nt/mingw-cfg.site | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/nt/mingw-cfg.site b/nt/mingw-cfg.site
index 498cd67..e15d14c 100644
--- a/nt/mingw-cfg.site
+++ b/nt/mingw-cfg.site
@@ -136,3 +136,8 @@ ac_cv_func_getrlimit=yes
 ac_cv_func_setrlimit=yes
 # GCC warnings that produce too much noise
 gl_cv_warn_c__Wredundant_decls=no
+# We don't want to compile lib/copy-file-range.c because it isn't used
+# on Windows, and because compiling it triggers a warning about a
+# missing prototype, since lib/unistd.h, where Gnulib has its
+# prototype, isn't built on Windows.
+gl_cv_func_copy_file_range=yes



reply via email to

[Prev in Thread] Current Thread [Next in Thread]