[glib] Move a assignment to the relevant #ifdef branch
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glib] Move a assignment to the relevant #ifdef branch
- Date: Mon, 7 Sep 2009 07:05:14 +0000 (UTC)
commit 1ec32c403bac36ca9f72e82c23b14045bc323931
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Sep 7 03:02:58 2009 -0400
Move a assignment to the relevant #ifdef branch
Dead code spotted by clang.
gio/gcancellable.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gio/gcancellable.c b/gio/gcancellable.c
index e73d384..36973ad 100644
--- a/gio/gcancellable.c
+++ b/gio/gcancellable.c
@@ -510,9 +510,8 @@ g_cancellable_make_pollfd (GCancellable *cancellable, GPollFD *pollfd)
return FALSE;
g_return_val_if_fail (G_IS_CANCELLABLE (cancellable), FALSE);
- priv = cancellable->priv;
-
#ifdef G_OS_WIN32
+ priv = cancellable->priv;
G_LOCK(cancellable);
if (priv->event == NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]