diff options
| author | Eli Zaretskii <eliz@gnu.org> | 2024-12-18 21:16:07 +0200 |
|---|---|---|
| committer | Eli Zaretskii <eliz@gnu.org> | 2024-12-18 21:16:07 +0200 |
| commit | 807b6172524a7b4f3fe19bc22a06afd48cc57b71 (patch) | |
| tree | 0fff0f8aaed73ab25fc3e7a18108200852e7ef3a /nt | |
| parent | 4af978d650762f28e9089fa4d8fc9b85d4420763 (diff) | |
Avoid MinGW compilation warning in lib/
* 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.
Diffstat (limited to 'nt')
| -rw-r--r-- | nt/gnulib-cfg.mk | 1 | ||||
| -rw-r--r-- | nt/mingw-cfg.site | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/nt/gnulib-cfg.mk b/nt/gnulib-cfg.mk index 048f812724a..c18a1d8e470 100644 --- a/nt/gnulib-cfg.mk +++ b/nt/gnulib-cfg.mk @@ -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 diff --git a/nt/mingw-cfg.site b/nt/mingw-cfg.site index 9962cc46642..16b61de3bd0 100644 --- a/nt/mingw-cfg.site +++ b/nt/mingw-cfg.site @@ -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 |
