app-editors/ng: build w/ -std=gnu89

In 279064ccf6, a bunch of -Wno-* were
added but that isn't sufficient for the C99 porting effort. Instead,
pass -std=gnu89 which handles not making these errors out of the box.

Bug: https://bugs.gentoo.org/729234
Closes: https://bugs.gentoo.org/880419
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-02-15 21:00:31 +00:00
parent b4568b9f01
commit a3d877d69a

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
@@ -34,10 +34,7 @@ src_prepare() {
cd - >/dev/null || die
cp sys/unix/configure . || die
# written in K&R C
append-flags \
-Wno-implicit-function-declaration \
-Wno-implicit-int \
-Wno-return-type
append-flags -std=gnu89
}
src_configure() {