diff options
author | runge <runge> | 2006-12-28 20:00:08 +0000 |
---|---|---|
committer | runge <runge> | 2006-12-28 20:00:08 +0000 |
commit | 5c9ba4bb035255956dd176b285df3a81bafa02e3 (patch) | |
tree | 29bfb0544fca31db024619a612d09b3a5e0132c2 /x11vnc/scan.c | |
parent | f9baaf1ee49e7889808b1f058a5f348a9cd5f027 (diff) | |
download | libtdevnc-5c9ba4bb035255956dd176b285df3a81bafa02e3.tar.gz libtdevnc-5c9ba4bb035255956dd176b285df3a81bafa02e3.zip |
still more compiler warnings; ssvnc 1.0.9 sync.
Diffstat (limited to 'x11vnc/scan.c')
-rw-r--r-- | x11vnc/scan.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/x11vnc/scan.c b/x11vnc/scan.c index 61706d7..7ffc24f 100644 --- a/x11vnc/scan.c +++ b/x11vnc/scan.c @@ -347,6 +347,8 @@ void shm_delete(XShmSegmentInfo *shm) { if (shm != NULL && shm->shmid != -1) { shmctl(shm->shmid, IPC_RMID, 0); } +#else + if (!shm) {} #endif } @@ -2866,7 +2868,6 @@ static int scan_display(int ystart, int rescan) { #ifndef NO_NCACHE /* XXX Y test */ if (ncache > 0) { - XEvent ev; int gotone = 0; if (macosx_console) { if (macosx_checkevent(NULL)) { @@ -2874,6 +2875,7 @@ if (ncache > 0) { } } else { #if !NO_X11 + XEvent ev; if (raw_fb_str) { ; } else if (XCheckTypedEvent(dpy, MapNotify, &ev)) { |