Silence compiler warnings.

2006-04-11  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkscale.c (gtk_scale_get_layout_offsets): Silence
	compiler warnings.
This commit is contained in:
Matthias Clasen 2006-04-11 16:41:25 +00:00 committed by Matthias Clasen
parent 371ce39cfc
commit 4e2069f779
3 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2006-04-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkscale.c (gtk_scale_get_layout_offsets): Silence
compiler warnings.
* gtk/gtkinputdialog.c (gtk_input_dialog_set_mapping_mode): Don't
dereference info before checking it for NULL. (Coverity)

View File

@ -1,5 +1,8 @@
2006-04-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkscale.c (gtk_scale_get_layout_offsets): Silence
compiler warnings.
* gtk/gtkinputdialog.c (gtk_input_dialog_set_mapping_mode): Don't
dereference info before checking it for NULL. (Coverity)

View File

@ -722,7 +722,8 @@ gtk_scale_get_layout_offsets (GtkScale *scale,
gint *x,
gint *y)
{
gint local_x, local_y;
gint local_x = 0;
gint local_y = 0;
g_return_if_fail (GTK_IS_SCALE (scale));