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.
This commit is contained in:
parent
4af978d650
commit
807b617252
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue