From 604fae8f46ca02a2e8a089f0205083bb580fd119 Mon Sep 17 00:00:00 2001 From: Nicolas PARLANT Date: Mon, 22 Sep 2025 16:17:18 +0200 Subject: [PATCH] net-irc/ngircd: fix c23 >./../portab/portab.h:42:24: note: expanded from macro > 'PARAMS' > 42 | # define PARAMS(args) () > | ^ >In file included from tool.c:33: >./tool.h:24:13: error: a function declaration without a > prototype is deprecated in all versions of C and is treated as a > zero-parameter prototype in C23, conflicting with a subsequent definition > [-Werror,-Wdeprecated-non-prototype] > 24 | GLOBAL void ngt_TrimStr PARAMS((char *String )); > | ^ ifdef PROTOTYPES is here, let's use it Signed-off-by: Nicolas PARLANT Part-of: https://github.com/gentoo/gentoo/pull/43894 Closes: https://github.com/gentoo/gentoo/pull/43894 Signed-off-by: Sam James --- net-irc/ngircd/ngircd-27.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net-irc/ngircd/ngircd-27.ebuild b/net-irc/ngircd/ngircd-27.ebuild index fb27543e85b56..9e49735a97810 100644 --- a/net-irc/ngircd/ngircd-27.ebuild +++ b/net-irc/ngircd/ngircd-27.ebuild @@ -4,7 +4,7 @@ EAPI=8 VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/alexbarton.asc -inherit tmpfiles systemd verify-sig +inherit flag-o-matic tmpfiles systemd verify-sig DESCRIPTION="An IRC server written from scratch" HOMEPAGE="https://ngircd.barton.de/" @@ -71,6 +71,7 @@ src_prepare() { } src_configure() { + append-cppflags -DPROTOTYPES # fix c23 local myeconfargs=( --sysconfdir="${EPREFIX}"/etc/${PN}