commit: e40886348cdc6e038ced85c97f2fcc86437b20c8 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org> AuthorDate: Thu Aug 20 13:53:10 2020 +0000 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org> CommitDate: Thu Aug 20 13:53:10 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4088634
dev-libs/input-pad: fix build with Clang Closes: https://bugs.gentoo.org/737132 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org> .../input-pad/files/input-pad-Wreturn-type.patch | 23 ++++++++++++++++++++++ .../input-pad/input-pad-1.0.99_pre20140916.ebuild | 5 ++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/dev-libs/input-pad/files/input-pad-Wreturn-type.patch b/dev-libs/input-pad/files/input-pad-Wreturn-type.patch new file mode 100644 index 00000000000..2e50f8bce2b --- /dev/null +++ b/dev-libs/input-pad/files/input-pad-Wreturn-type.patch @@ -0,0 +1,23 @@ +--- a/input-pad/window-gtk.c ++++ b/input-pad/window-gtk.c +@@ -5462,7 +5462,7 @@ + + app = INPUT_PAD_GTK_APPLICATION (window_data); + +- g_return_if_fail (app->window != NULL); ++ g_return_val_if_fail (app->window != NULL, 0); + + return gtk_widget_get_visible (GTK_WIDGET (app->window)); + } +@@ -5661,8 +5661,9 @@ + { + InputPadGtkApplication *app; + +- g_return_if_fail (window_data != NULL && +- INPUT_PAD_IS_GTK_APPLICATION (window_data)); ++ g_return_val_if_fail (window_data != NULL && ++ INPUT_PAD_IS_GTK_APPLICATION (window_data), ++ -1); + + app = INPUT_PAD_GTK_APPLICATION (window_data); + diff --git a/dev-libs/input-pad/input-pad-1.0.99_pre20140916.ebuild b/dev-libs/input-pad/input-pad-1.0.99_pre20140916.ebuild index 6675baa16c6..2294addb77a 100644 --- a/dev-libs/input-pad/input-pad-1.0.99_pre20140916.ebuild +++ b/dev-libs/input-pad/input-pad-1.0.99_pre20140916.ebuild @@ -33,7 +33,10 @@ BDEPEND="dev-util/intltool virtual/pkgconfig" S="${WORKDIR}/${MY_P}" -PATCHES=( "${FILESDIR}"/${PN}-man.patch ) +PATCHES=( + "${FILESDIR}"/${PN}-Wreturn-type.patch + "${FILESDIR}"/${PN}-man.patch +) src_prepare() { default
