[glib] gdbus-codegen: don't shadow variable
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gdbus-codegen: don't shadow variable
- Date: Fri, 6 Jul 2012 17:50:33 +0000 (UTC)
commit d728eae85fbcefb66f9bfc41a52cf315ef84d667
Author: David Zeuthen <zeuthen gmail com>
Date: Fri Jul 6 13:43:05 2012 -0400
gdbus-codegen: don't shadow variable
This avoids a warning when building with -Wshadow
Signed-off-by: David Zeuthen <zeuthen gmail com>
gio/gdbus-2.0/codegen/codegen.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/gdbus-2.0/codegen/codegen.py b/gio/gdbus-2.0/codegen/codegen.py
index bca3490..f93728f 100644
--- a/gio/gdbus-2.0/codegen/codegen.py
+++ b/gio/gdbus-2.0/codegen/codegen.py
@@ -2420,15 +2420,15 @@ class CodeGenerator:
' }\n'
' if (num_changes > 0)\n'
' {\n'
- ' GList *connections, *l;\n'
+ ' GList *connections, *ll;\n'
' GVariant *signal_variant;'
'\n'
' signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "%s",\n'
' &builder, &invalidated_builder));\n'
' connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));\n'
- ' for (l = connections; l != NULL; l = l->next)\n'
+ ' for (ll = connections; ll != NULL; ll = ll->next)\n'
' {\n'
- ' GDBusConnection *connection = l->data;\n'
+ ' GDBusConnection *connection = ll->data;\n'
'\n'
' g_dbus_connection_emit_signal (connection,\n'
' NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)),\n'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]