File x11vnc-warn.diff of Package x11vnc

# This fixes a compiler warning about a function that could possibly
# exit a non-void function without return statement. It can not, but
# gcc is not clever enough to figure that.
# There's also warnings from gcc about statements always being true 
# with tests whether strings are non-NULL but have been declared
# as char[] and not char*. gcc is right, but the warnings are 
# absolutely harmless.
# -- KG, 2008-09-12

Index: x11vnc-0.9.4/x11vnc/x11vnc.c
===================================================================
--- x11vnc-0.9.4.orig/x11vnc/x11vnc.c
+++ x11vnc-0.9.4/x11vnc/x11vnc.c
@@ -252,8 +252,9 @@ static void record_last_fb_update(void) 
 			    (int) now, (int) last_fb_bytes_sent);
 		}
 		last_fb_bytes_sent = now;
 	}
+	return 0;	/* Never reached, just to shut up gcc */
 }
 
 static int choose_delay(double dt) {
 	static double t0 = 0.0, t1 = 0.0, t2 = 0.0, now; 
openSUSE Build Service is sponsored by