initialize variable to avoid stupid compiler warning.

2004-02-01  Simon Budig  <simon@gimp.org>

	* app/display/gimpdisplayshell-scale.c: initialize variable
	to avoid stupid compiler warning.
This commit is contained in:
Simon Budig 2004-02-01 00:36:53 +00:00 committed by Simon Budig
parent 95ed7031f4
commit 1ab2c64a12
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-02-01 Simon Budig <simon@gimp.org>
* app/display/gimpdisplayshell-scale.c: initialize variable
to avoid stupid compiler warning.
2004-02-01 Dave Neary <bolsh@gimp.org> 2004-02-01 Dave Neary <bolsh@gimp.org>
* libgimpwidgets/gimpwidgets.c * libgimpwidgets/gimpwidgets.c

View file

@ -75,7 +75,7 @@ gimp_display_shell_scale_zoom_step (GimpZoomType zoom_type,
gdouble scale) gdouble scale)
{ {
gint i, n_presets; gint i, n_presets;
gdouble new_scale; gdouble new_scale = 1.0;
/* This table is constructed to have fractions, that approximate /* This table is constructed to have fractions, that approximate
* sqrt(2)^k. This gives a smooth feeling regardless of the starting * sqrt(2)^k. This gives a smooth feeling regardless of the starting