[gimp] plug-ins: fix some warnings.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: fix some warnings.
- Date: Sun, 19 Jun 2022 18:26:56 +0000 (UTC)
commit 4e3edb5121187c5a205a8537134474ee50ecc0de
Author: Jehan <jehan girinstud io>
Date: Sun Jun 19 20:25:22 2022 +0200
plug-ins: fix some warnings.
Should have paid more attention. I left 2 warnings in the file:
> plug-ins/common/file-raw-data.c:1949:22: warning: variable ‘procedure’ set but not used
[-Wunused-but-set-variable]
> plug-ins/common/file-raw-data.c:1970:48: warning: ‘bpp’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
plug-ins/common/file-raw-data.c | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
---
diff --git a/plug-ins/common/file-raw-data.c b/plug-ins/common/file-raw-data.c
index 046f11894a..f05c29c0ac 100644
--- a/plug-ins/common/file-raw-data.c
+++ b/plug-ins/common/file-raw-data.c
@@ -1941,15 +1941,14 @@ load_config_notify (GimpProcedureConfig *config,
(height_update = (g_strcmp0 (pspec->name, "height") == 0)) ||
(offset_update = (g_strcmp0 (pspec->name, "offset") == 0)))
{
- GimpProcedure *procedure;
- GFile *file;
- goffset file_size;
- gint width;
- gint height;
- gint offset;
- gint bpp;
- gint bitspp;
- goffset max_pixels;
+ GFile *file;
+ goffset file_size;
+ gint width;
+ gint height;
+ gint offset;
+ gint bpp = 1;
+ gint bitspp = 8;
+ goffset max_pixels;
get_bpp (config, &bpp, &bitspp);
g_object_get (config,
@@ -1958,7 +1957,6 @@ load_config_notify (GimpProcedureConfig *config,
"offset", &offset,
NULL);
- procedure = gimp_procedure_config_get_procedure (config);
file = g_object_get_data (G_OBJECT (preview), "procedure-file");
file_size = get_file_info (file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]