[X2Go-Commits] [nx-libs] 09/108: Events.c: mitigate compiler warning

git-admin at x2go.org git-admin at x2go.org
Fri Nov 9 20:35:32 CET 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository nx-libs.

commit f8e76fd69157b6f466b2efc7d41b031d530e873c
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Thu Mar 8 22:25:15 2018 +0100

    Events.c: mitigate compiler warning
    
    "ISO C forbids assignment between function pointer and 'void *' [-pedantic]"
---
 nx-X11/programs/Xserver/hw/nxagent/Events.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nx-X11/programs/Xserver/hw/nxagent/Events.c b/nx-X11/programs/Xserver/hw/nxagent/Events.c
index fad9f28..23a9182 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Events.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Events.c
@@ -821,7 +821,7 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate)
 
   #ifdef TEST
   fprintf(stderr, "nxagentDispatchEvents: Going to handle new events with "
-              "predicate [%p].\n", predicate);
+              "predicate [%p].\n", *(void **)&predicate);
   #endif
 
   if (nxagentRemoteExposeRegion == NULL)

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list