commit:     604fae8f46ca02a2e8a089f0205083bb580fd119
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Mon Sep 22 14:17:18 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Sep 22 15:25:36 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=604fae8f

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 <AT> 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 <AT> gentoo.org>

 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 fb27543e85b5..9e49735a9781 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}
 

Reply via email to