summaryrefslogtreecommitdiffstats
path: root/client/x11
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-01-24 18:17:34 +0200
committerAlon Levy <alevy@redhat.com>2011-01-25 17:22:48 +0200
commit46c70521d55ca649d94dd999986a6a4e91b15923 (patch)
tree4c15cc82e0ff64b77941a279a66000c4c10113f1 /client/x11
parentd3b22d86f070e816a2c1a27ca7b30d5587859fe8 (diff)
downloadspice-46c70521d55ca649d94dd999986a6a4e91b15923.tar.gz
spice-46c70521d55ca649d94dd999986a6a4e91b15923.tar.xz
spice-46c70521d55ca649d94dd999986a6a4e91b15923.zip
client/server: warning fixes (gcc 4.6.0)
gcc 4.6.0 added "[-Werror=unused-but-set-variable]", this and the next few fixes tend to that. Mostly harmless.
Diffstat (limited to 'client/x11')
-rw-r--r--client/x11/platform.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp
index 334a74ff..4877798e 100644
--- a/client/x11/platform.cpp
+++ b/client/x11/platform.cpp
@@ -3050,8 +3050,8 @@ void Platform::init()
{
#ifdef USE_OGL
int err, ev;
-#endif // USE_OGL
int threads_enable;
+#endif // USE_OGL
int major, minor;
Bool pixmaps;
@@ -3059,8 +3059,11 @@ void Platform::init()
setlocale(LC_ALL, "");
+#ifdef USE_OGL
threads_enable = XInitThreads();
-
+#else
+ XInitThreads();
+#endif
if (!(x_display = XOpenDisplay(NULL))) {
THROW("open X display failed");