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.
This commit is contained in:
Alx Sa 2024-08-20 12:50:49 +00:00
parent 8dd7783fc2
commit 5a03dff9d2
3 changed files with 7 additions and 7 deletions

View file

@ -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));

View file

@ -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);

View file

@ -1305,7 +1305,7 @@ load_image (GimpProcedure *procedure,
{
gdouble xres = 72.0;
gdouble yres = 72.0;
gushort read_unit;
gushort read_unit = RESUNIT_NONE;
GimpUnit *unit = gimp_unit_pixel (); /* invalid unit */
if (TIFFGetField (tif, TIFFTAG_XRESOLUTION, &xres))