emacs-devel
[Top][All Lists]
Advanced

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

Warning in lib/malloc.c


From: Eli Zaretskii
Subject: Warning in lib/malloc.c
Date: Wed, 18 Dec 2024 15:30:19 +0200

Recent update from Gnulib causes the following compilation warning
when building with MinGW:

  malloc.c:32:1: warning: no previous prototype for 'rpl_malloc' 
[-Wmissing-prototypes]
     32 | rpl_malloc (size_t n)
        | ^~~~~~~~~~

I'm guessing that this is because nt/gnulib-cfg.mk does

  OMIT_GNULIB_MODULE_malloc-posix = true
  OMIT_GNULIB_MODULE_realloc-gnu = true
  OMIT_GNULIB_MODULE_realloc-posix = true

and thus does not include (and probably doesn't generate) some Gnulib
header.  I also think that the MinGW build should not compile
malloc.c, as I've seen no callers of rpl_malloc.  So maybe
nt/gnulib-cfg.mk should also do

  OMIT_GNULIB_MODULE_malloc-gnu = true

?  If you agree, I will make that change.

Thanks.



reply via email to

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