unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Warning in lib/malloc.c
@ 2024-12-18 13:30 Eli Zaretskii
  0 siblings, 0 replies; only message in thread
From: Eli Zaretskii @ 2024-12-18 13:30 UTC (permalink / raw)
  To: Paul Eggert; +Cc: emacs-devel

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.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-12-18 13:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-18 13:30 Warning in lib/malloc.c Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).