From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Warning in lib/malloc.c Date: Wed, 18 Dec 2024 15:30:19 +0200 Message-ID: <86msgtm844.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27590"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 18 14:31:15 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tNu8w-0006zo-Kw for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Dec 2024 14:31:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNu8G-0002JN-94; Wed, 18 Dec 2024 08:30:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNu8B-0002It-RO for emacs-devel@gnu.org; Wed, 18 Dec 2024 08:30:30 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNu8A-0000Yb-Rg; Wed, 18 Dec 2024 08:30:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Subject:To:From:Date:mime-version:in-reply-to: references; bh=dW+0+oYtY5IJMlv3XOF6aWVNcxC4XS6Z23CA+aDrK4o=; b=XgiERVvy8f8vve QozYd/UKNPBQs2HzJESynQikj3Zyjk/rcqew/HxOE3+HaAw5UZXM3GcWIkTlxnG2xi9s7+Jq6VYvf f6RPK+3Jh23rpuzHQKLL84DoI5UTrAYar34vmnaPkwCLbJkEGgZB/358C8n3YKyRfXpMViXlTBTvr Eqm4x998qf3C+ndkxSmas7kJC0ROzDtLVkIyMqyZBOBqlkEl/7KQTQ8KbHog83z0I0xfwvcebP+eT XNeZ8jAePGKHTo1F4rV/PWdErJiOr3O6h7N2RhTxHT4aRgW6ARLiRtWw6rXuo+8bRZld5NF07FPQi yb9fAtLcNsP0jaGlHdbg==; X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326649 Archived-At: 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.