commit:     02ac61b498061a3851e094150165ddf4cab93166
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 20 09:58:03 2023 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Dec 20 10:00:13 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02ac61b4

app-editors/emacs: Append -Wno-return-mismatch to CFLAGS

If you think this should be fixed in the source instead, feel free to
submit a patch that adds all the missing prototypes.

Closes: https://bugs.gentoo.org/920360
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 app-editors/emacs/emacs-18.59-r15.ebuild | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/app-editors/emacs/emacs-18.59-r15.ebuild 
b/app-editors/emacs/emacs-18.59-r15.ebuild
index 7844e27bcb93..466b031d91a4 100644
--- a/app-editors/emacs/emacs-18.59-r15.ebuild
+++ b/app-editors/emacs/emacs-18.59-r15.ebuild
@@ -74,11 +74,13 @@ src_configure() {
                src/s-linux.h || die
 
        # -O3 and -finline-functions cause segmentation faults at run time.
-       # -Wno-implicit and -Wno-return-type will quieten newer versions of GCC;
-       # feel free to submit a patch adding all those missing prototypes.
+       # -Wno-implicit, -Wno-return-type and -Wno-return-mismatch will
+       # quieten newer versions of GCC; feel free to submit a patch adding
+       # all those missing prototypes.
        strip-flags
        filter-flags -finline-functions -fpie
-       append-flags -fno-strict-aliasing -Wno-implicit -Wno-return-type
+       append-flags -fno-strict-aliasing -Wno-implicit -Wno-return-type \
+               -Wno-return-mismatch
        append-ldflags $(test-flags -no-pie)    #639562
        replace-flags -O[3-9] -O2
 }

Reply via email to