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 <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/43894
Closes: https://github.com/gentoo/gentoo/pull/43894
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Nicolas PARLANT
2025-09-22 16:17:18 +02:00
committed by Sam James
parent 202ec2fd05
commit 604fae8f46

View File

@@ -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}