diff options
author | Akinori Hattori <hattya@gentoo.org> | 2020-08-20 22:53:10 +0900 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2020-08-20 22:53:10 +0900 |
commit | e40886348cdc6e038ced85c97f2fcc86437b20c8 (patch) | |
tree | b9381dd2155755cc246652f5dd4015c423f7475c /dev-libs/input-pad | |
parent | app-i18n/skkfep: update to EAPI 7 (diff) | |
download | gentoo-e40886348cdc6e038ced85c97f2fcc86437b20c8.tar.gz gentoo-e40886348cdc6e038ced85c97f2fcc86437b20c8.tar.bz2 gentoo-e40886348cdc6e038ced85c97f2fcc86437b20c8.zip |
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@gentoo.org>
Diffstat (limited to 'dev-libs/input-pad')
-rw-r--r-- | dev-libs/input-pad/files/input-pad-Wreturn-type.patch | 23 | ||||
-rw-r--r-- | dev-libs/input-pad/input-pad-1.0.99_pre20140916.ebuild | 5 |
2 files changed, 27 insertions, 1 deletions
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 000000000000..2e50f8bce2b0 --- /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 6675baa16c60..2294addb77a2 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 |