commit:     12bd3b6d3f2239776739e854f01b4dbc02f3c91b
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Thu Mar 21 05:28:39 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Mar 21 05:57:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12bd3b6d

sci-electronics/geda: avoid fatal warning for maybe-uninitialized

LTO makes the compiler better able to spot this. But it isn't something
the entire build should fail due to, not for stable release tags of
existing software.

Closes: https://bugs.gentoo.org/862453
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-electronics/geda/geda-1.10.2-r2.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sci-electronics/geda/geda-1.10.2-r2.ebuild 
b/sci-electronics/geda/geda-1.10.2-r2.ebuild
index 4d2d3cab6699..7983738c270b 100644
--- a/sci-electronics/geda/geda-1.10.2-r2.ebuild
+++ b/sci-electronics/geda/geda-1.10.2-r2.ebuild
@@ -62,6 +62,10 @@ src_prepare() {
        rm docs/wiki/media/geda/pcb_plugin_template.tar.gz || die
        rm docs/wiki/media/pcb/plugin_debug_window.tar.gz || die
 
+       # -Wmaybe-uninitialized is made fatal, which is not ideal for building
+       # releases. Upstream is working on fixing these anyway.
+       sed -i '/Werror_maybe_uninitialized_IF_SUPPORTED/d' configure.ac
+
        eautoreconf
 }
 

Reply via email to