]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid MinGW compilation warning in lib/
authorEli Zaretskii <eliz@gnu.org>
Wed, 18 Dec 2024 19:16:07 +0000 (21:16 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 15:14:30 +0000 (16:14 +0100)
* nt/mingw-cfg.site (ac_cv_func_malloc_0_nonnull)
(gl_cv_malloc_ptrdiff, gl_cv_func_malloc_posix):
* nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_malloc-gnu): Set to avoid
compiling lib/malloc.c, which is not needed and causes a
compilation warning.

(cherry picked from commit 807b6172524a7b4f3fe19bc22a06afd48cc57b71)

nt/gnulib-cfg.mk
nt/mingw-cfg.site

index 048f812724a04c79b093fa5199bc6106c1d6ea94..c18a1d8e470d8c680d779274f068f2e7516d6ad5 100644 (file)
@@ -63,6 +63,7 @@ OMIT_GNULIB_MODULE_getdelim = true
 OMIT_GNULIB_MODULE_getline = true
 OMIT_GNULIB_MODULE_inttypes-incomplete = true
 OMIT_GNULIB_MODULE_lchmod = true
+OMIT_GNULIB_MODULE_malloc-gnu = true
 OMIT_GNULIB_MODULE_malloc-posix = true
 OMIT_GNULIB_MODULE_nanosleep = true
 OMIT_GNULIB_MODULE_nproc = true
index 9962cc4664289a9b66548ad9351d03021fc8e2d1..16b61de3bd0aa3313d50585a57b4709326194a8b 100644 (file)
@@ -167,6 +167,11 @@ ac_cv_func_strsignal=no
 # implementation of 'free' doesn't touch errno, and it emits a
 # compilation warning.
 gl_cv_func_free_preserves_errno=yes
+# Don't build the Gnulib malloc.c: it is not needed, and it emits a
+# compilation warning.
+ac_cv_func_malloc_0_nonnull=yes
+gl_cv_malloc_ptrdiff=yes
+gl_cv_func_malloc_posix=yes
 # Don't build the Gnulib nanosleep module: it requires W2K or later,
 # and MinGW does have nanosleep.
 gl_cv_func_nanosleep=yes