libgimp*, plug-ins: fix some warnings

This commit is contained in:
Marie-P 2021-05-24 20:36:31 +00:00 committed by Jehan
parent 825067eab7
commit c112a55958
14 changed files with 22 additions and 21 deletions

View file

@ -993,7 +993,7 @@ gimp_procedure_dialog_fill_list (GimpProcedureDialog *dialog,
{
GParamSpec **pspecs;
guint n_pspecs;
gint i;
guint i;
pspecs = g_object_class_list_properties (G_OBJECT_GET_CLASS (dialog->priv->config),
&n_pspecs);
@ -1661,7 +1661,7 @@ gimp_procedure_dialog_fill_container_list (GimpProcedureDialog *dialog,
{
GParamSpec **pspecs;
guint n_pspecs;
gint i;
guint i;
pspecs = g_object_class_list_properties (G_OBJECT_GET_CLASS (dialog->priv->config),
&n_pspecs);

View file

@ -232,9 +232,9 @@ gimp_tile_read (GimpTileBackendPlugin *backend_plugin,
}
else
{
gint tile_stride = TILE_WIDTH * priv->bpp;
gint gimp_tile_stride = gimp_tile.ewidth * priv->bpp;
gint row;
gint tile_stride = TILE_WIDTH * priv->bpp;
gint gimp_tile_stride = gimp_tile.ewidth * priv->bpp;
guint row;
for (row = 0; row < gimp_tile.eheight; row++)
{
@ -277,9 +277,9 @@ gimp_tile_write (GimpTileBackendPlugin *backend_plugin,
}
else
{
gint tile_stride = TILE_WIDTH * priv->bpp;
gint gimp_tile_stride = gimp_tile.ewidth * priv->bpp;
gint row;
gint tile_stride = TILE_WIDTH * priv->bpp;
gint gimp_tile_stride = gimp_tile.ewidth * priv->bpp;
guint row;
for (row = 0; row < gimp_tile.eheight; row++)
{

View file

@ -1538,7 +1538,7 @@ _gp_params_read (GIOChannel *channel,
guint *n_params,
gpointer user_data)
{
gint i;
guint i;
if (! _gimp_wire_read_int32 (channel, (guint32 *) n_params, 1, user_data))
return;

View file

@ -675,7 +675,7 @@ gimp_param_value_array_values_cmp (GParamSpec *pspec,
}
else /* length1 == length2 */
{
guint i;
gint i;
for (i = 0; i < length1; i++)
{

View file

@ -528,7 +528,7 @@ gimp_config_path_expand_only (const gchar *path,
gchar **substs = NULL;
guint n_substs = 0;
gint length = 0;
gint i;
guint i;
home = g_get_home_dir ();
if (home)

View file

@ -89,7 +89,7 @@ gimp_config_diff_same (GObject *a,
{
GParamSpec **param_specs;
guint n_param_specs;
gint i;
guint i;
GList *list = NULL;
param_specs = g_object_class_list_properties (G_OBJECT_GET_CLASS (a),
@ -118,7 +118,7 @@ gimp_config_diff_other (GObject *a,
{
GParamSpec **param_specs;
guint n_param_specs;
gint i;
guint i;
GList *list = NULL;
param_specs = g_object_class_list_properties (G_OBJECT_GET_CLASS (a),

View file

@ -103,7 +103,7 @@ gimp_thumb_init (const gchar *creator,
{
GEnumClass *enum_class;
GEnumValue *enum_value;
gint i;
guint i;
g_return_val_if_fail (creator != NULL, FALSE);
g_return_val_if_fail (thumb_basedir == NULL ||

View file

@ -395,7 +395,7 @@ gimp_color_area_draw (GtkWidget *widget,
guchar *buf = g_new (guchar, priv->rowstride * priv->height);
guchar *src = priv->buf;
guchar *dest = buf;
gint i;
guint i;
for (i = 0; i < priv->height; i++)
{

View file

@ -339,7 +339,7 @@ gimp_color_scale_draw (GtkWidget *widget,
guchar *buf = g_new (guchar, priv->rowstride * priv->height);
guchar *src = priv->buf;
guchar *dest = buf;
gint i;
guint i;
for (i = 0; i < priv->height; i++)
{

View file

@ -570,7 +570,8 @@ do_optimizations (GimpRunMode run_mode,
{
/* iterate through all rows of all frames, find statistical
mode for each pixel position. */
gint i,j;
gint i;
guint j;
guchar **these_rows;
guchar **red;
guchar **green;

View file

@ -554,7 +554,7 @@ special_flatten_indexed_alpha (guchar *pixels,
gint transparent,
gint numpixels)
{
guint32 i;
gint i;
/* Each transparent pixel in the image is mapped to a uniform value
* for encoding, if image already has <=255 colors

View file

@ -806,7 +806,7 @@ gih_save_dialog (GimpImage *image)
gtk_grid_set_column_spacing (GTK_GRID (dimgrid), 4);
for (i = 0; i < GIMP_PIXPIPE_MAXDIM; i++)
{
gint j;
gsize j;
adjustment = gtk_adjustment_new (gihparams.rank[i], 1, 100, 1, 1, 0);
spinbutton = gimp_spin_button_new (adjustment, 1.0, 0);

View file

@ -1529,7 +1529,7 @@ write_pixel_data (GOutputStream *output,
{
write_gint16 (output, 1, "Compression type (RLE)");
len += 2;
IF_DEEP_DBG printf ("\t\t\t\t. ChanLenPos, len %d\n", len);
IF_DEEP_DBG printf ("\t\t\t\t. ChanLenPos, len %ld\n", len);
}
if (ltable_offset > 0)

View file

@ -942,7 +942,7 @@ on_date_button_clicked (GtkButton *widget,
date_text = gtk_entry_get_text (GTK_ENTRY (entry_widget));
if (date_text && date_text[0] != '\0')
{
sscanf (date_text, "%d-%d-%d;", &year, &month, &day);
sscanf (date_text, "%u-%u-%u;", &year, &month, &day);
month--;
}
else