Blob Blame History Raw
commit 332248d54a02540bae215c2f6d58e66ddffbd5ad
Author: Sergei Trofimovich <slyich@gmail.com>
Date:   Sat Aug 27 16:36:55 2022 +0100

    src/ssGtk.c: fix runItGtk prototype to match gtk-2 API
    
    Propotype mismatch noticed by gcc:
    
        ssGtk.c:106:20: warning: passing argument 1 of 'g_idle_add' from incompatible pointer type [-Wincompatible-pointer-types]
          106 |         g_idle_add(runItGtk, NULL);
              |                    ^~~~~~~~
              |                    |
              |                    int (*)(void)
                         from ssGtk.c:36:
        ...-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)'
          794 | guint    g_idle_add                 (GSourceFunc     function,
              |                                      ~~~~~~~~~~~~~~~~^~~~~~~~

diff --git a/src/ssGtk.c b/src/ssGtk.c
index b40e5e9c89001a88..cc6589a233e5a3e4 100644
--- a/src/ssGtk.c
+++ b/src/ssGtk.c
@@ -86,7 +86,7 @@ ADDR iAinstAddr(ADDR baseAddr, BYTE iAmode, int delta);
 
 static GtkLabel* instcount_label;
 /* sits in a background loop */
-static int runItGtk(void)
+static gboolean runItGtk(gpointer data)
 {
 	char label[200];
 	if (!stopPressed && runIt_loopX(GTK_REFRESH_RATE)) {