Remove set-but-unused variables, to appease gcc 4.6
https://bugzilla.gnome.org/show_bug.cgi?id=640447
This commit is contained in:
parent
75d1230dd1
commit
13edecde6c
@ -1020,13 +1020,10 @@ on_get_unix_user_finished (DBusGProxy *proxy,
|
|||||||
DBusGProxyCall *call,
|
DBusGProxyCall *call,
|
||||||
GdmUserManagerNewSession *new_session)
|
GdmUserManagerNewSession *new_session)
|
||||||
{
|
{
|
||||||
GdmUserManager *manager;
|
|
||||||
GError *error;
|
GError *error;
|
||||||
guint uid;
|
guint uid;
|
||||||
gboolean res;
|
gboolean res;
|
||||||
|
|
||||||
manager = new_session->manager;
|
|
||||||
|
|
||||||
g_assert (new_session->get_unix_user_call == call);
|
g_assert (new_session->get_unix_user_call == call);
|
||||||
|
|
||||||
error = NULL;
|
error = NULL;
|
||||||
@ -1550,11 +1547,9 @@ static void
|
|||||||
get_accounts_proxy (GdmUserManager *manager)
|
get_accounts_proxy (GdmUserManager *manager)
|
||||||
{
|
{
|
||||||
DBusGProxy *proxy;
|
DBusGProxy *proxy;
|
||||||
GError *error;
|
|
||||||
|
|
||||||
g_assert (manager->priv->accounts_proxy == NULL);
|
g_assert (manager->priv->accounts_proxy == NULL);
|
||||||
|
|
||||||
error = NULL;
|
|
||||||
proxy = dbus_g_proxy_new_for_name (manager->priv->connection,
|
proxy = dbus_g_proxy_new_for_name (manager->priv->connection,
|
||||||
ACCOUNTS_NAME,
|
ACCOUNTS_NAME,
|
||||||
ACCOUNTS_PATH,
|
ACCOUNTS_PATH,
|
||||||
@ -2554,8 +2549,6 @@ reload_shells (GdmUserManager *manager)
|
|||||||
static void
|
static void
|
||||||
load_users_manually (GdmUserManager *manager)
|
load_users_manually (GdmUserManager *manager)
|
||||||
{
|
{
|
||||||
gboolean res;
|
|
||||||
|
|
||||||
manager->priv->shells = g_hash_table_new_full (g_str_hash,
|
manager->priv->shells = g_hash_table_new_full (g_str_hash,
|
||||||
g_str_equal,
|
g_str_equal,
|
||||||
g_free,
|
g_free,
|
||||||
@ -2564,7 +2557,7 @@ load_users_manually (GdmUserManager *manager)
|
|||||||
|
|
||||||
load_sessions (manager);
|
load_sessions (manager);
|
||||||
|
|
||||||
res = load_ck_history (manager);
|
load_ck_history (manager);
|
||||||
schedule_reload_passwd (manager);
|
schedule_reload_passwd (manager);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2605,10 +2598,8 @@ load_seat_incrementally (GdmUserManager *manager)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (manager->priv->seat.state == GDM_USER_MANAGER_SEAT_STATE_LOADED) {
|
if (manager->priv->seat.state == GDM_USER_MANAGER_SEAT_STATE_LOADED) {
|
||||||
gboolean res;
|
|
||||||
|
|
||||||
load_sessions (manager);
|
load_sessions (manager);
|
||||||
res = load_ck_history (manager);
|
load_ck_history (manager);
|
||||||
}
|
}
|
||||||
|
|
||||||
maybe_set_is_loaded (manager);
|
maybe_set_is_loaded (manager);
|
||||||
|
@ -151,10 +151,6 @@ gdm_user_set_property (GObject *object,
|
|||||||
const GValue *value,
|
const GValue *value,
|
||||||
GParamSpec *pspec)
|
GParamSpec *pspec)
|
||||||
{
|
{
|
||||||
GdmUser *user;
|
|
||||||
|
|
||||||
user = GDM_USER (object);
|
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||||
|
@ -59,13 +59,10 @@ update_settings (GvcMixerEventRole *role,
|
|||||||
gpointer *op)
|
gpointer *op)
|
||||||
{
|
{
|
||||||
pa_operation *o;
|
pa_operation *o;
|
||||||
guint index;
|
|
||||||
const GvcChannelMap *map;
|
const GvcChannelMap *map;
|
||||||
pa_context *context;
|
pa_context *context;
|
||||||
pa_ext_stream_restore_info info;
|
pa_ext_stream_restore_info info;
|
||||||
|
|
||||||
index = gvc_mixer_stream_get_index (GVC_MIXER_STREAM (role));
|
|
||||||
|
|
||||||
map = gvc_mixer_stream_get_channel_map (GVC_MIXER_STREAM(role));
|
map = gvc_mixer_stream_get_channel_map (GVC_MIXER_STREAM(role));
|
||||||
|
|
||||||
info.volume = *gvc_channel_map_get_cvolume(map);
|
info.volume = *gvc_channel_map_get_cvolume(map);
|
||||||
@ -165,12 +162,9 @@ gvc_mixer_event_role_constructor (GType type,
|
|||||||
GObjectConstructParam *construct_params)
|
GObjectConstructParam *construct_params)
|
||||||
{
|
{
|
||||||
GObject *object;
|
GObject *object;
|
||||||
GvcMixerEventRole *self;
|
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gvc_mixer_event_role_parent_class)->constructor (type, n_construct_properties, construct_params);
|
object = G_OBJECT_CLASS (gvc_mixer_event_role_parent_class)->constructor (type, n_construct_properties, construct_params);
|
||||||
|
|
||||||
self = GVC_MIXER_EVENT_ROLE (object);
|
|
||||||
|
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,12 +55,10 @@ gvc_mixer_sink_input_push_volume (GvcMixerStream *stream, gpointer *op)
|
|||||||
const GvcChannelMap *map;
|
const GvcChannelMap *map;
|
||||||
pa_context *context;
|
pa_context *context;
|
||||||
const pa_cvolume *cv;
|
const pa_cvolume *cv;
|
||||||
guint num_channels;
|
|
||||||
|
|
||||||
index = gvc_mixer_stream_get_index (stream);
|
index = gvc_mixer_stream_get_index (stream);
|
||||||
|
|
||||||
map = gvc_mixer_stream_get_channel_map (stream);
|
map = gvc_mixer_stream_get_channel_map (stream);
|
||||||
num_channels = gvc_channel_map_get_num_channels (map);
|
|
||||||
|
|
||||||
cv = gvc_channel_map_get_cvolume(map);
|
cv = gvc_channel_map_get_cvolume(map);
|
||||||
|
|
||||||
@ -115,12 +113,9 @@ gvc_mixer_sink_input_constructor (GType type,
|
|||||||
GObjectConstructParam *construct_params)
|
GObjectConstructParam *construct_params)
|
||||||
{
|
{
|
||||||
GObject *object;
|
GObject *object;
|
||||||
GvcMixerSinkInput *self;
|
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gvc_mixer_sink_input_parent_class)->constructor (type, n_construct_properties, construct_params);
|
object = G_OBJECT_CLASS (gvc_mixer_sink_input_parent_class)->constructor (type, n_construct_properties, construct_params);
|
||||||
|
|
||||||
self = GVC_MIXER_SINK_INPUT (object);
|
|
||||||
|
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -149,13 +144,9 @@ gvc_mixer_sink_input_init (GvcMixerSinkInput *sink_input)
|
|||||||
static void
|
static void
|
||||||
gvc_mixer_sink_input_dispose (GObject *object)
|
gvc_mixer_sink_input_dispose (GObject *object)
|
||||||
{
|
{
|
||||||
GvcMixerSinkInput *mixer_sink_input;
|
|
||||||
|
|
||||||
g_return_if_fail (object != NULL);
|
g_return_if_fail (object != NULL);
|
||||||
g_return_if_fail (GVC_IS_MIXER_SINK_INPUT (object));
|
g_return_if_fail (GVC_IS_MIXER_SINK_INPUT (object));
|
||||||
|
|
||||||
mixer_sink_input = GVC_MIXER_SINK_INPUT (object);
|
|
||||||
|
|
||||||
G_OBJECT_CLASS (gvc_mixer_sink_input_parent_class)->dispose (object);
|
G_OBJECT_CLASS (gvc_mixer_sink_input_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,12 +145,9 @@ gvc_mixer_sink_constructor (GType type,
|
|||||||
GObjectConstructParam *construct_params)
|
GObjectConstructParam *construct_params)
|
||||||
{
|
{
|
||||||
GObject *object;
|
GObject *object;
|
||||||
GvcMixerSink *self;
|
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gvc_mixer_sink_parent_class)->constructor (type, n_construct_properties, construct_params);
|
object = G_OBJECT_CLASS (gvc_mixer_sink_parent_class)->constructor (type, n_construct_properties, construct_params);
|
||||||
|
|
||||||
self = GVC_MIXER_SINK (object);
|
|
||||||
|
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -180,13 +177,9 @@ gvc_mixer_sink_init (GvcMixerSink *sink)
|
|||||||
static void
|
static void
|
||||||
gvc_mixer_sink_dispose (GObject *object)
|
gvc_mixer_sink_dispose (GObject *object)
|
||||||
{
|
{
|
||||||
GvcMixerSink *mixer_sink;
|
|
||||||
|
|
||||||
g_return_if_fail (object != NULL);
|
g_return_if_fail (object != NULL);
|
||||||
g_return_if_fail (GVC_IS_MIXER_SINK (object));
|
g_return_if_fail (GVC_IS_MIXER_SINK (object));
|
||||||
|
|
||||||
mixer_sink = GVC_MIXER_SINK (object);
|
|
||||||
|
|
||||||
G_OBJECT_CLASS (gvc_mixer_sink_parent_class)->dispose (object);
|
G_OBJECT_CLASS (gvc_mixer_sink_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,12 +66,9 @@ gvc_mixer_source_output_constructor (GType type,
|
|||||||
GObjectConstructParam *construct_params)
|
GObjectConstructParam *construct_params)
|
||||||
{
|
{
|
||||||
GObject *object;
|
GObject *object;
|
||||||
GvcMixerSourceOutput *self;
|
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gvc_mixer_source_output_parent_class)->constructor (type, n_construct_properties, construct_params);
|
object = G_OBJECT_CLASS (gvc_mixer_source_output_parent_class)->constructor (type, n_construct_properties, construct_params);
|
||||||
|
|
||||||
self = GVC_MIXER_SOURCE_OUTPUT (object);
|
|
||||||
|
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,12 +145,9 @@ gvc_mixer_source_constructor (GType type,
|
|||||||
GObjectConstructParam *construct_params)
|
GObjectConstructParam *construct_params)
|
||||||
{
|
{
|
||||||
GObject *object;
|
GObject *object;
|
||||||
GvcMixerSource *self;
|
|
||||||
|
|
||||||
object = G_OBJECT_CLASS (gvc_mixer_source_parent_class)->constructor (type, n_construct_properties, construct_params);
|
object = G_OBJECT_CLASS (gvc_mixer_source_parent_class)->constructor (type, n_construct_properties, construct_params);
|
||||||
|
|
||||||
self = GVC_MIXER_SOURCE (object);
|
|
||||||
|
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -180,13 +177,9 @@ gvc_mixer_source_init (GvcMixerSource *source)
|
|||||||
static void
|
static void
|
||||||
gvc_mixer_source_dispose (GObject *object)
|
gvc_mixer_source_dispose (GObject *object)
|
||||||
{
|
{
|
||||||
GvcMixerSource *mixer_source;
|
|
||||||
|
|
||||||
g_return_if_fail (object != NULL);
|
g_return_if_fail (object != NULL);
|
||||||
g_return_if_fail (GVC_IS_MIXER_SOURCE (object));
|
g_return_if_fail (GVC_IS_MIXER_SOURCE (object));
|
||||||
|
|
||||||
mixer_source = GVC_MIXER_SOURCE (object);
|
|
||||||
|
|
||||||
G_OBJECT_CLASS (gvc_mixer_source_parent_class)->dispose (object);
|
G_OBJECT_CLASS (gvc_mixer_source_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1317,7 +1317,6 @@ shell_app_info_launch_full (ShellAppInfo *info,
|
|||||||
gboolean ret;
|
gboolean ret;
|
||||||
ShellGlobal *global;
|
ShellGlobal *global;
|
||||||
MetaScreen *screen;
|
MetaScreen *screen;
|
||||||
MetaDisplay *display;
|
|
||||||
|
|
||||||
if (startup_id)
|
if (startup_id)
|
||||||
*startup_id = NULL;
|
*startup_id = NULL;
|
||||||
@ -1353,7 +1352,6 @@ shell_app_info_launch_full (ShellAppInfo *info,
|
|||||||
|
|
||||||
global = shell_global_get ();
|
global = shell_global_get ();
|
||||||
screen = shell_global_get_screen (global);
|
screen = shell_global_get_screen (global);
|
||||||
display = meta_screen_get_display (screen);
|
|
||||||
|
|
||||||
if (timestamp == 0)
|
if (timestamp == 0)
|
||||||
timestamp = clutter_get_current_event_time ();
|
timestamp = clutter_get_current_event_time ();
|
||||||
|
@ -885,7 +885,6 @@ shell_global_add_extension_importer (ShellGlobal *global,
|
|||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
jsval target_object;
|
jsval target_object;
|
||||||
JSObject *importer;
|
|
||||||
JSContext *context = gjs_context_get_native_context (global->js_context);
|
JSContext *context = gjs_context_get_native_context (global->js_context);
|
||||||
char *search_path[2] = { 0, 0 };
|
char *search_path[2] = { 0, 0 };
|
||||||
|
|
||||||
@ -920,7 +919,7 @@ shell_global_add_extension_importer (ShellGlobal *global,
|
|||||||
}
|
}
|
||||||
|
|
||||||
search_path[0] = (char*)directory;
|
search_path[0] = (char*)directory;
|
||||||
importer = gjs_define_importer (context, JSVAL_TO_OBJECT (target_object), target_property, (const char **)search_path, FALSE);
|
gjs_define_importer (context, JSVAL_TO_OBJECT (target_object), target_property, (const char **)search_path, FALSE);
|
||||||
JS_EndRequest (context);
|
JS_EndRequest (context);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
out_error:
|
out_error:
|
||||||
|
@ -825,12 +825,9 @@ on_focus_window_changed (MetaDisplay *display,
|
|||||||
GParamSpec *spec,
|
GParamSpec *spec,
|
||||||
ShellWindowTracker *tracker)
|
ShellWindowTracker *tracker)
|
||||||
{
|
{
|
||||||
MetaScreen *screen;
|
|
||||||
MetaWindow *new_focus_win;
|
MetaWindow *new_focus_win;
|
||||||
ShellApp *new_focus_app;
|
ShellApp *new_focus_app;
|
||||||
|
|
||||||
screen = shell_global_get_screen (shell_global_get ());
|
|
||||||
|
|
||||||
new_focus_win = meta_display_get_focus_window (display);
|
new_focus_win = meta_display_get_focus_window (display);
|
||||||
new_focus_app = new_focus_win ? g_hash_table_lookup (tracker->window_to_app, new_focus_win) : NULL;
|
new_focus_app = new_focus_win ? g_hash_table_lookup (tracker->window_to_app, new_focus_win) : NULL;
|
||||||
|
|
||||||
|
@ -250,7 +250,7 @@ st_overflow_box_allocate (ClutterActor *actor,
|
|||||||
StThemeNode *theme_node = st_widget_get_theme_node (ST_WIDGET (actor));
|
StThemeNode *theme_node = st_widget_get_theme_node (ST_WIDGET (actor));
|
||||||
ClutterActorBox content_box;
|
ClutterActorBox content_box;
|
||||||
gfloat position;
|
gfloat position;
|
||||||
float avail_width, avail_height;
|
float avail_width;
|
||||||
GList *l, *children;
|
GList *l, *children;
|
||||||
int i;
|
int i;
|
||||||
gboolean done_non_fixed;
|
gboolean done_non_fixed;
|
||||||
@ -265,7 +265,6 @@ st_overflow_box_allocate (ClutterActor *actor,
|
|||||||
st_theme_node_get_content_box (theme_node, box, &content_box);
|
st_theme_node_get_content_box (theme_node, box, &content_box);
|
||||||
|
|
||||||
avail_width = content_box.x2 - content_box.x1;
|
avail_width = content_box.x2 - content_box.x1;
|
||||||
avail_height = content_box.y2 - content_box.y1;
|
|
||||||
|
|
||||||
position = content_box.y1;
|
position = content_box.y1;
|
||||||
priv->n_visible = 0;
|
priv->n_visible = 0;
|
||||||
|
@ -643,13 +643,11 @@ st_scroll_bar_constructor (GType type,
|
|||||||
GObjectClass *gobject_class;
|
GObjectClass *gobject_class;
|
||||||
GObject *obj;
|
GObject *obj;
|
||||||
StScrollBar *bar;
|
StScrollBar *bar;
|
||||||
StScrollBarPrivate *priv;
|
|
||||||
|
|
||||||
gobject_class = G_OBJECT_CLASS (st_scroll_bar_parent_class);
|
gobject_class = G_OBJECT_CLASS (st_scroll_bar_parent_class);
|
||||||
obj = gobject_class->constructor (type, n_properties, properties);
|
obj = gobject_class->constructor (type, n_properties, properties);
|
||||||
|
|
||||||
bar = ST_SCROLL_BAR (obj);
|
bar = ST_SCROLL_BAR (obj);
|
||||||
priv = ST_SCROLL_BAR_GET_PRIVATE (bar);
|
|
||||||
|
|
||||||
g_signal_connect (bar, "notify::reactive",
|
g_signal_connect (bar, "notify::reactive",
|
||||||
G_CALLBACK (bar_reactive_notify_cb), NULL);
|
G_CALLBACK (bar_reactive_notify_cb), NULL);
|
||||||
|
@ -315,12 +315,12 @@ st_table_calculate_col_widths (StTable *table,
|
|||||||
|
|
||||||
for (list = children; list; list = list->next)
|
for (list = children; list; list = list->next)
|
||||||
{
|
{
|
||||||
gint row, col;
|
gint col;
|
||||||
gfloat w_min, w_pref;
|
gfloat w_min, w_pref;
|
||||||
gboolean x_expand;
|
gboolean x_expand;
|
||||||
StTableChild *meta;
|
StTableChild *meta;
|
||||||
ClutterActor *child;
|
ClutterActor *child;
|
||||||
gint col_span, row_span;
|
gint col_span;
|
||||||
|
|
||||||
child = CLUTTER_ACTOR (list->data);
|
child = CLUTTER_ACTOR (list->data);
|
||||||
|
|
||||||
@ -331,10 +331,8 @@ st_table_calculate_col_widths (StTable *table,
|
|||||||
|
|
||||||
/* get child properties */
|
/* get child properties */
|
||||||
col = meta->col;
|
col = meta->col;
|
||||||
row = meta->row;
|
|
||||||
x_expand = meta->x_expand;
|
x_expand = meta->x_expand;
|
||||||
col_span = meta->col_span;
|
col_span = meta->col_span;
|
||||||
row_span = meta->row_span;
|
|
||||||
|
|
||||||
if (x_expand)
|
if (x_expand)
|
||||||
is_expand_col[col] = TRUE;
|
is_expand_col[col] = TRUE;
|
||||||
@ -428,7 +426,7 @@ st_table_calculate_row_heights (StTable *table,
|
|||||||
{
|
{
|
||||||
gint row, col, cell_width;
|
gint row, col, cell_width;
|
||||||
gfloat h_min, h_pref;
|
gfloat h_min, h_pref;
|
||||||
gboolean x_expand, y_expand;
|
gboolean y_expand;
|
||||||
StTableChild *meta;
|
StTableChild *meta;
|
||||||
ClutterActor *child;
|
ClutterActor *child;
|
||||||
gint col_span, row_span;
|
gint col_span, row_span;
|
||||||
@ -443,7 +441,6 @@ st_table_calculate_row_heights (StTable *table,
|
|||||||
/* get child properties */
|
/* get child properties */
|
||||||
col = meta->col;
|
col = meta->col;
|
||||||
row = meta->row;
|
row = meta->row;
|
||||||
x_expand = meta->x_expand;
|
|
||||||
y_expand = meta->y_expand;
|
y_expand = meta->y_expand;
|
||||||
col_span = meta->col_span;
|
col_span = meta->col_span;
|
||||||
row_span = meta->row_span;
|
row_span = meta->row_span;
|
||||||
|
@ -357,13 +357,10 @@ st_widget_allocate (ClutterActor *actor,
|
|||||||
{
|
{
|
||||||
StWidget *self = ST_WIDGET (actor);
|
StWidget *self = ST_WIDGET (actor);
|
||||||
StWidgetPrivate *priv = self->priv;
|
StWidgetPrivate *priv = self->priv;
|
||||||
StThemeNode *theme_node;
|
|
||||||
ClutterActorClass *klass;
|
ClutterActorClass *klass;
|
||||||
ClutterGeometry area;
|
ClutterGeometry area;
|
||||||
ClutterVertex in_v, out_v;
|
ClutterVertex in_v, out_v;
|
||||||
|
|
||||||
theme_node = st_widget_get_theme_node (self);
|
|
||||||
|
|
||||||
klass = CLUTTER_ACTOR_CLASS (st_widget_parent_class);
|
klass = CLUTTER_ACTOR_CLASS (st_widget_parent_class);
|
||||||
klass->allocate (actor, box, flags);
|
klass->allocate (actor, box, flags);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user