app-emulation/ski: fix missing prototype warnings
authorMike Frysinger <vapier@gentoo.org>
Thu, 19 Jan 2017 14:08:20 +0000 (08:08 -0600)
committerMike Frysinger <vapier@gentoo.org>
Thu, 19 Jan 2017 14:13:37 +0000 (08:13 -0600)
app-emulation/ski/files/ski-1.3.2-prototypes.patch [new file with mode: 0644]
app-emulation/ski/ski-1.3.2-r1.ebuild

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 (file)
index 0000000..b666143
--- /dev/null
@@ -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;
index 23d9c253841c1dea7398bd6448cec6d6a5006607..3ca262479f5da4b64cd61dff14bfd9cf2858ab1f 100644 (file)
@@ -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() {