|
|
b036904 |
commit 332248d54a02540bae215c2f6d58e66ddffbd5ad
|
|
|
b036904 |
Author: Sergei Trofimovich <slyich@gmail.com>
|
|
|
b036904 |
Date: Sat Aug 27 16:36:55 2022 +0100
|
|
|
b036904 |
|
|
|
b036904 |
src/ssGtk.c: fix runItGtk prototype to match gtk-2 API
|
|
|
b036904 |
|
|
|
b036904 |
Propotype mismatch noticed by gcc:
|
|
|
b036904 |
|
|
|
b036904 |
ssGtk.c:106:20: warning: passing argument 1 of 'g_idle_add' from incompatible pointer type [-Wincompatible-pointer-types]
|
|
|
b036904 |
106 | g_idle_add(runItGtk, NULL);
|
|
|
b036904 |
| ^~~~~~~~
|
|
|
b036904 |
| |
|
|
|
b036904 |
| int (*)(void)
|
|
|
b036904 |
from ssGtk.c:36:
|
|
|
b036904 |
...-glib-2.72.3-dev/include/glib-2.0/glib/gmain.h:794:54: note: expected 'GSourceFunc' {aka 'int (*)(void *)'} but argument is of type 'int (*)(void)'
|
|
|
b036904 |
794 | guint g_idle_add (GSourceFunc function,
|
|
|
b036904 |
| ~~~~~~~~~~~~~~~~^~~~~~~~
|
|
|
b036904 |
|
|
|
b036904 |
diff --git a/src/ssGtk.c b/src/ssGtk.c
|
|
|
b036904 |
index b40e5e9c89001a88..cc6589a233e5a3e4 100644
|
|
|
b036904 |
--- a/src/ssGtk.c
|
|
|
b036904 |
+++ b/src/ssGtk.c
|
|
|
b036904 |
@@ -86,7 +86,7 @@ ADDR iAinstAddr(ADDR baseAddr, BYTE iAmode, int delta);
|
|
|
b036904 |
|
|
|
b036904 |
static GtkLabel* instcount_label;
|
|
|
b036904 |
/* sits in a background loop */
|
|
|
b036904 |
-static int runItGtk(void)
|
|
|
b036904 |
+static gboolean runItGtk(gpointer data)
|
|
|
b036904 |
{
|
|
|
b036904 |
char label[200];
|
|
|
b036904 |
if (!stopPressed && runIt_loopX(GTK_REFRESH_RATE)) {
|