diff options
author | William Jon McCann <jmccann@redhat.com> | 2008-02-19 15:45:50 +0000 |
---|---|---|
committer | William Jon McCann <mccann@src.gnome.org> | 2008-02-19 15:45:50 +0000 |
commit | 4bddb1ab301fff18b7d1f975f99020350152d795 (patch) | |
tree | f6cc59107c464a3ebc19cd5fb51b50515f81de75 /common | |
parent | 6434eb5a71bf64d535f9496eaa45771ec52e9cbf (diff) | |
download | gdm-4bddb1ab301fff18b7d1f975f99020350152d795.tar.gz |
Fix a bunch of compiler warnings and remove unused code. Patch from:
2008-02-19 William Jon McCann <jmccann@redhat.com>
* common/gdm-settings-client.c:
(gdm_settings_client_get_locale_string),
(gdm_settings_client_init):
* common/gdm-settings-desktop-backend.c: (save_settings):
* common/gdm-settings-direct.c: (gdm_settings_direct_init):
* common/test-log.c: (test_log):
* common/test-settings-client.c: (test_settings_client):
* daemon/gdm-chooser-server.c: (gdm_chooser_server_constructor):
* daemon/gdm-chooser-session.c: (gdm_chooser_session_set_property),
(gdm_chooser_session_get_property),
(gdm_chooser_session_constructor):
* daemon/gdm-display-access-file.c:
* daemon/gdm-display.c: (_create_access_file_for_user),
(gdm_display_constructor):
* daemon/gdm-factory-slave.c: (gdm_factory_slave_start),
(gdm_factory_slave_stop), (gdm_factory_slave_set_property),
(gdm_factory_slave_get_property), (gdm_factory_slave_constructor):
* daemon/gdm-greeter-server.c: (gdm_greeter_server_constructor):
* daemon/gdm-greeter-session.c: (gdm_greeter_session_set_property),
(gdm_greeter_session_get_property):
* daemon/gdm-local-display-factory.c:
(gdm_local_display_factory_set_property),
(gdm_local_display_factory_get_property),
(gdm_local_display_factory_constructor):
* daemon/gdm-manager.c: (gdm_manager_constructor):
* daemon/gdm-product-display.c: (gdm_product_display_constructor):
* daemon/gdm-product-slave.c: (gdm_product_slave_start),
(gdm_product_slave_stop), (gdm_product_slave_set_property),
(gdm_product_slave_get_property), (gdm_product_slave_constructor):
* daemon/gdm-server.c: (gdm_server_constructor):
* daemon/gdm-session-auditor.c:
* daemon/gdm-session-direct.c: (gdm_session_direct_open):
* daemon/gdm-session-linux-auditor.c:
* daemon/gdm-session-relay.c: (gdm_session_relay_set_property),
(gdm_session_relay_get_property), (gdm_session_relay_constructor):
* daemon/gdm-session-settings.c:
* daemon/gdm-session-worker-job.c:
(gdm_session_worker_job_constructor):
* daemon/gdm-session-worker.c: (gdm_session_worker_constructor):
* daemon/gdm-simple-slave.c: (gdm_simple_slave_start),
(gdm_simple_slave_stop), (gdm_simple_slave_set_property),
(gdm_simple_slave_get_property), (gdm_simple_slave_constructor):
* daemon/gdm-slave.c: (gdm_slave_run_script),
(_get_primary_user_session_id), (gdm_slave_constructor):
* daemon/gdm-static-display.c: (gdm_static_display_set_property),
(gdm_static_display_get_property):
* daemon/gdm-static-factory-display.c:
(gdm_static_factory_display_set_property),
(gdm_static_factory_display_get_property),
(gdm_static_factory_display_constructor):
* daemon/gdm-transient-display.c:
(gdm_transient_display_set_property),
(gdm_transient_display_get_property):
* daemon/gdm-welcome-session.c: (parse_dbus_launch_output),
(gdm_welcome_session_constructor):
* daemon/gdm-xdmcp-chooser-slave.c:
(gdm_xdmcp_chooser_slave_start), (gdm_xdmcp_chooser_slave_stop),
(gdm_xdmcp_chooser_slave_set_property),
(gdm_xdmcp_chooser_slave_get_property),
(gdm_xdmcp_chooser_slave_constructor):
* daemon/gdm-xdmcp-display-factory.c: (do_bind),
(indirect_client_create), (gdm_xdmcp_handle_forward_query):
* daemon/test-session.c: (main):
* gui/simple-chooser/gdm-chooser-client.c:
(gdm_chooser_client_set_property),
(gdm_chooser_client_get_property),
(gdm_chooser_client_constructor), (gdm_chooser_client_dispose):
* gui/simple-chooser/gdm-chooser-session.c:
(gdm_chooser_session_set_property),
(gdm_chooser_session_get_property),
(gdm_chooser_session_constructor), (gdm_chooser_session_dispose):
* gui/simple-chooser/gdm-host-chooser-dialog.c:
(gdm_host_chooser_dialog_set_property),
(gdm_host_chooser_dialog_get_property),
(gdm_host_chooser_dialog_constructor),
(gdm_host_chooser_dialog_dispose):
* gui/simple-chooser/gdm-host-chooser-widget.c:
(gdm_host_chooser_widget_set_property),
(gdm_host_chooser_widget_get_property),
(gdm_host_chooser_widget_constructor):
* gui/simple-greeter/gdm-a11y-preferences-dialog.c:
(gdm_a11y_preferences_dialog_set_property),
(gdm_a11y_preferences_dialog_get_property),
(gdm_a11y_preferences_dialog_constructor),
(gdm_a11y_preferences_dialog_dispose):
* gui/simple-greeter/gdm-chooser-widget.c:
(shrink_edge_toward_active_row), (gdm_chooser_widget_constructor):
* gui/simple-greeter/gdm-greeter-client.c:
(gdm_greeter_client_set_property),
(gdm_greeter_client_get_property),
(gdm_greeter_client_constructor), (gdm_greeter_client_dispose):
* gui/simple-greeter/gdm-greeter-login-window.c:
(gdm_greeter_login_window_constructor):
* gui/simple-greeter/gdm-greeter-panel.c:
(gdm_greeter_panel_set_property), (gdm_greeter_panel_get_property),
(gdm_greeter_panel_constructor), (gdm_greeter_panel_dispose):
* gui/simple-greeter/gdm-greeter-session.c:
(gdm_greeter_session_set_property),
(gdm_greeter_session_get_property),
(gdm_greeter_session_constructor), (gdm_greeter_session_dispose):
* gui/simple-greeter/gdm-language-chooser-widget.c:
(gdm_language_chooser_widget_dispose):
* gui/simple-greeter/gdm-option-widget.c: (activate_from_item_id),
(gdm_option_widget_constructor):
* gui/simple-greeter/gdm-recent-option-widget.c:
(gdm_recent_option_widget_dispose):
* gui/simple-greeter/gdm-remote-login-window.c:
(gdm_remote_login_window_set_property),
(gdm_remote_login_window_get_property),
(gdm_remote_login_window_constructor):
* gui/simple-greeter/gdm-session-client.c:
(gdm_session_client_constructor), (gdm_session_client_dispose):
* gui/simple-greeter/gdm-session-manager.c:
(gdm_session_manager_set_property),
(gdm_session_manager_get_property),
(gdm_session_manager_constructor), (gdm_session_manager_dispose):
* gui/simple-greeter/gdm-user-chooser-dialog.c:
(gdm_user_chooser_dialog_set_property),
(gdm_user_chooser_dialog_get_property),
(gdm_user_chooser_dialog_constructor),
(gdm_user_chooser_dialog_dispose):
* gui/simple-greeter/gdm-user-chooser-widget.c:
(gdm_user_chooser_widget_set_property),
(gdm_user_chooser_widget_get_property),
(gdm_user_chooser_widget_constructor):
* gui/simple-greeter/gdm-user-manager.c:
(_get_primary_user_session_id), (_get_login_window_session_id):
* gui/simple-greeter/gdm-user.c:
* gui/simple-greeter/libnotificationarea/na-tray-manager.c:
(na_tray_manager_handle_begin_message):
* gui/simple-greeter/libnotificationarea/na-tray.c:
* gui/user-switch-applet/applet.c: (prefs_cb),
(switch_to_user_session), (display_key_changed), (applet_fill_cb):
* gui/user-switch-applet/gdm-user-menu-item.c:
* tests/s-common-address.c: (START_TEST):
* utils/gdmflexiserver.c: (get_login_window_session_id):
Fix a bunch of compiler warnings and remove unused code.
Patch from: Kjartan Maraas <kmaraas@broadpark.no>
svn path=/trunk/; revision=5800
Diffstat (limited to 'common')
-rw-r--r-- | common/gdm-settings-client.c | 7 | ||||
-rw-r--r-- | common/gdm-settings-desktop-backend.c | 9 | ||||
-rw-r--r-- | common/gdm-settings-direct.c | 5 | ||||
-rw-r--r-- | common/test-log.c | 2 | ||||
-rw-r--r-- | common/test-settings-client.c | 3 |
5 files changed, 6 insertions, 20 deletions
diff --git a/common/gdm-settings-client.c b/common/gdm-settings-client.c index 099304d1..aa9eac53 100644 --- a/common/gdm-settings-client.c +++ b/common/gdm-settings-client.c @@ -45,8 +45,6 @@ #define SETTINGS_DBUS_PATH "/org/gnome/DisplayManager/Settings" #define SETTINGS_DBUS_INTERFACE "org.gnome.DisplayManager.Settings" -static char *schemas_file = NULL; -static char *schemas_root = NULL; static GHashTable *notifiers = NULL; static GHashTable *schemas = NULL; static DBusGProxy *settings_proxy = NULL; @@ -250,7 +248,6 @@ gdm_settings_client_get_locale_string (const char *key, { char *candidate_key; char *translated_value; - GError *error; char **languages; gboolean free_languages = FALSE; int i; @@ -260,7 +257,6 @@ gdm_settings_client_get_locale_string (const char *key, candidate_key = NULL; translated_value = NULL; - error = NULL; if (locale != NULL) { languages = g_new (char *, 2); @@ -529,9 +525,6 @@ gdm_settings_client_init (const char *file, schemas = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify)gdm_settings_entry_free); g_slist_foreach (list, (GFunc)hashify_list, NULL); - schemas_file = g_strdup (file); - schemas_root = g_strdup (root); - dbus_g_proxy_add_signal (settings_proxy, "ValueChanged", G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INVALID); dbus_g_proxy_connect_signal (settings_proxy, "ValueChanged", diff --git a/common/gdm-settings-desktop-backend.c b/common/gdm-settings-desktop-backend.c index b068c248..2d8c0b4e 100644 --- a/common/gdm-settings-desktop-backend.c +++ b/common/gdm-settings-desktop-backend.c @@ -173,7 +173,6 @@ static void save_settings (GdmSettingsDesktopBackend *backend) { GError *local_error; - gboolean res; char *contents; gsize length; @@ -192,10 +191,10 @@ save_settings (GdmSettingsDesktopBackend *backend) } local_error = NULL; - res = g_file_set_contents (backend->priv->filename, - contents, - length, - &local_error); + g_file_set_contents (backend->priv->filename, + contents, + length, + &local_error); if (local_error != NULL) { g_warning ("Unable to save settings: %s", local_error->message); g_error_free (local_error); diff --git a/common/gdm-settings-direct.c b/common/gdm-settings-direct.c index 176049e4..ebe80c40 100644 --- a/common/gdm-settings-direct.c +++ b/common/gdm-settings-direct.c @@ -38,8 +38,6 @@ #include "gdm-settings-utils.h" #include "gdm-settings-direct.h" -static char *schemas_file; -static char *schemas_root; static GHashTable *schemas; static GdmSettings *settings_object; @@ -226,9 +224,6 @@ gdm_settings_direct_init (GdmSettings *settings, schemas = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify)gdm_settings_entry_free); g_slist_foreach (list, (GFunc)hashify_list, NULL); - schemas_file = g_strdup (file); - schemas_root = g_strdup (root); - settings_object = settings; return TRUE; diff --git a/common/test-log.c b/common/test-log.c index 6bde7604..dca3e9d7 100644 --- a/common/test-log.c +++ b/common/test-log.c @@ -46,8 +46,8 @@ test_log (void) g_message ("Test message"); g_warning ("Test warning"); - g_error ("Test error"); g_critical ("Test critical"); + g_error ("Test error"); } int diff --git a/common/test-settings-client.c b/common/test-settings-client.c index 379d9c5c..cd07d8fd 100644 --- a/common/test-settings-client.c +++ b/common/test-settings-client.c @@ -51,7 +51,6 @@ test_settings_client (gpointer data) char *strval; gboolean boolval; gboolean res; - guint notify_id; strval = NULL; res = gdm_settings_client_get_string (GDM_KEY_WILLING, &strval); @@ -62,7 +61,7 @@ test_settings_client (gpointer data) g_debug ("Got res=%d %s=%s", res, GDM_KEY_XDMCP, boolval ? "true" : "false"); g_debug ("Adding notify for all keys"); - notify_id = gdm_settings_client_notify_add ("/", notify_cb, NULL, NULL); + gdm_settings_client_notify_add ("/", notify_cb, NULL, NULL); g_debug ("Setting boolean key %s to %s", GDM_KEY_XDMCP, !boolval ? "true" : "false"); gdm_settings_client_set_boolean (GDM_KEY_XDMCP, !boolval); |