From 5a03dff9d2b283b3057903fbdeb91f491798dcea Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Tue, 20 Aug 2024 12:50:49 +0000 Subject: [PATCH] app, plug-ins: Fix warnings and typo app/text/gimptextlayout.c gives warnings on MSYS2 about xres and yres not being initialized. plug-ins/file-tiff/file-tiff-load.c gives warnings about read_unit not being initialized. plug-ins/file-bmp/bmp.c has a typo on the label of the rgbx-8888 option for rgb-format. --- app/text/gimptextlayout.c | 4 ++-- plug-ins/file-bmp/bmp.c | 2 +- plug-ins/file-tiff/file-tiff-load.c | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/text/gimptextlayout.c b/app/text/gimptextlayout.c index d3b27832ab..27c015cb6c 100644 --- a/app/text/gimptextlayout.c +++ b/app/text/gimptextlayout.c @@ -377,8 +377,8 @@ gimp_text_layout_get_transform (GimpTextLayout *layout, cairo_matrix_t *matrix) { GimpText *text; - gdouble xres; - gdouble yres; + gdouble xres = 0; + gdouble yres = 0; gdouble norm; g_return_if_fail (GIMP_IS_TEXT_LAYOUT (layout)); diff --git a/plug-ins/file-bmp/bmp.c b/plug-ins/file-bmp/bmp.c index 19cc323fc0..d40533b364 100644 --- a/plug-ins/file-bmp/bmp.c +++ b/plug-ins/file-bmp/bmp.c @@ -224,7 +224,7 @@ bmp_create_procedure (GimpPlugIn *plug_in, "rgb-555", RGB_555, _("16 bit (X1 R5 G5 B5)"), NULL, "rgb-888", RGB_888, _("24 bit (R8 G8 B8)"), NULL, "rgba-8888", RGBA_8888, _("32 bit (A8 R8 G8 B8)"), NULL, - "rgbx-8888", RGBX_8888, _("32 bit (X8 R8 G8 B8"), NULL, + "rgbx-8888", RGBX_8888, _("32 bit (X8 R8 G8 B8)"), NULL, NULL), "rgb-888", G_PARAM_READWRITE); diff --git a/plug-ins/file-tiff/file-tiff-load.c b/plug-ins/file-tiff/file-tiff-load.c index 5988d2a77b..80155ae012 100644 --- a/plug-ins/file-tiff/file-tiff-load.c +++ b/plug-ins/file-tiff/file-tiff-load.c @@ -1303,10 +1303,10 @@ load_image (GimpProcedure *procedure, /* any resolution info in the file? */ { - gdouble xres = 72.0; - gdouble yres = 72.0; - gushort read_unit; - GimpUnit *unit = gimp_unit_pixel (); /* invalid unit */ + gdouble xres = 72.0; + gdouble yres = 72.0; + gushort read_unit = RESUNIT_NONE; + GimpUnit *unit = gimp_unit_pixel (); /* invalid unit */ if (TIFFGetField (tif, TIFFTAG_XRESOLUTION, &xres)) {