commit: 68d016ae9d06dd74729c9899776cd283dcd82285
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 19 14:08:20 2017 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Thu Jan 19 14:13:37 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68d016ae
app-emulation/ski: fix missing prototype warnings
app-emulation/ski/files/ski-1.3.2-prototypes.patch | 31 ++++++++++++++++++++++
app-emulation/ski/ski-1.3.2-r1.ebuild | 1 +
2 files changed, 32 insertions(+)
diff --git a/app-emulation/ski/files/ski-1.3.2-prototypes.patch
b/app-emulation/ski/files/ski-1.3.2-prototypes.patch
new file mode 100644
index 00000000..b666143
--- /dev/null
+++ b/app-emulation/ski/files/ski-1.3.2-prototypes.patch
@@ -0,0 +1,31 @@
+fix up prototypes to avoid -Wimplicit-function-declaration warnings
+
+--- a/src/coreui.h
++++ b/src/coreui.h
+@@ -177,6 +177,7 @@
+ void stepIt_setupGtk(CTR cnt);
+
+ void runIt_setupX(void);
++void runIt_setupGtk(void);
+
+
+ /*--------------------------------------------------------------------------
+--- a/src/ssGtk.c
++++ b/src/ssGtk.c
+@@ -82,6 +82,7 @@
+
+ /* externals */
+ extern dataStart;
++ADDR iAinstAddr(ADDR baseAddr, BYTE iAmode, int delta);
+
+ static GtkLabel* instcount_label;
+ /* sits in a background loop */
+@@ -100,7 +101,7 @@
+ }
+
+
+-void runIt_setupGtk(void *data)
++void runIt_setupGtk(void)
+ {
+ g_idle_add(runItGtk, NULL);
+ stopPressed = NO;
diff --git a/app-emulation/ski/ski-1.3.2-r1.ebuild
b/app-emulation/ski/ski-1.3.2-r1.ebuild
index 23d9c25..3ca2624 100644
--- a/app-emulation/ski/ski-1.3.2-r1.ebuild
+++ b/app-emulation/ski/ski-1.3.2-r1.ebuild
@@ -37,6 +37,7 @@ PATCHES=(
"${FILESDIR}"/${P}-binutils.patch
"${FILESDIR}"/${P}-uselib.patch #592226
"${FILESDIR}"/${P}-ncurses-config.patch
+ "${FILESDIR}"/${P}-prototypes.patch
)
src_prepare() {