[Xfce4-commits] <xfce4-panel:master> Fix possible compiler warnings.
Nick Schermer
noreply at xfce.org
Sat Feb 18 18:24:01 CET 2012
Updating branch refs/heads/master
to fb0e6302452f2ae4d678c5d0efd5f2fae08481a7 (commit)
from a007b2e7209ddff3133bf1b57dc8f6e851cb243d (commit)
commit fb0e6302452f2ae4d678c5d0efd5f2fae08481a7
Author: Nick Schermer <nick at xfce.org>
Date: Sat Feb 18 18:23:07 2012 +0100
Fix possible compiler warnings.
panel/panel-preferences-dialog.c | 2 +-
panel/panel-tic-tac-toe.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/panel/panel-preferences-dialog.c b/panel/panel-preferences-dialog.c
index c55b056..7fbabd6 100644
--- a/panel/panel-preferences-dialog.c
+++ b/panel/panel-preferences-dialog.c
@@ -437,12 +437,12 @@ panel_preferences_dialog_bindings_update (PanelPreferencesDialog *dialog)
panel_preferences_dialog_bg_image_notified (dialog);
/* get run mode of the driver (multiple screens or randr) */
+ screen = gtk_widget_get_screen (GTK_WIDGET (dialog->active));
display = gtk_widget_get_display (GTK_WIDGET (dialog->active));
n_screens = gdk_display_get_n_screens (display);
n_monitors = 1;
if (G_LIKELY (n_screens <= 1))
{
- screen = gtk_widget_get_screen (GTK_WIDGET (dialog->active));
n_monitors = gdk_screen_get_n_monitors (screen);
}
diff --git a/panel/panel-tic-tac-toe.c b/panel/panel-tic-tac-toe.c
index f65a6ac..87d757a 100644
--- a/panel/panel-tic-tac-toe.c
+++ b/panel/panel-tic-tac-toe.c
@@ -419,7 +419,7 @@ panel_tic_tac_toe_get_move (gint state,
gint level)
{
gint winner;
- gint moves, legal_moves;
+ gint moves = 0, legal_moves;
gint first_moves;
gint rate, value;
gint i;
More information about the Xfce4-commits
mailing list