[libvirt] [PATCH sandbox 9/9] Fix broken 'default' case in switch statement
Daniel P. Berrange
berrange at redhat.com
Thu Aug 15 15:36:47 UTC 2013
From: "Daniel P. Berrange" <berrange at redhat.com>
The 'default' case somehow got placed on the wrong line,
leading to unreachable code.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
libvirt-sandbox/libvirt-sandbox-config-interactive.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libvirt-sandbox/libvirt-sandbox-config-interactive.c b/libvirt-sandbox/libvirt-sandbox-config-interactive.c
index 6d0e1e8..6fbb1c6 100644
--- a/libvirt-sandbox/libvirt-sandbox-config-interactive.c
+++ b/libvirt-sandbox/libvirt-sandbox-config-interactive.c
@@ -91,12 +91,11 @@ static void gvir_sandbox_config_interactive_set_property(GObject *object,
GVirSandboxConfigInteractivePrivate *priv = config->priv;
switch (prop_id) {
-
- default:
case PROP_TTY:
priv->tty = g_value_get_boolean(value);
break;
+ default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
}
}
--
1.8.3.1
More information about the libvir-list
mailing list