[gimp] plug-ins: fix two harmless compiler warnings
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: fix two harmless compiler warnings
- Date: Tue, 2 Jul 2019 13:23:26 +0000 (UTC)
commit 738c035839369cb3ad44939b33851df71ef269c6
Author: Michael Natterer <mitch gimp org>
Date: Tue Jul 2 15:22:16 2019 +0200
plug-ins: fix two harmless compiler warnings
plug-ins/common/file-heif.c | 2 ++
plug-ins/metadata/metadata-editor.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/plug-ins/common/file-heif.c b/plug-ins/common/file-heif.c
index 78ad9a6568..26588bbb71 100644
--- a/plug-ins/common/file-heif.c
+++ b/plug-ins/common/file-heif.c
@@ -1233,7 +1233,9 @@ save_dialog (SaveParams *params)
GtkWidget *label;
GtkWidget *lossless_button;
GtkWidget *frame;
+#ifdef HAVE_LIBHEIF_1_4_0
GtkWidget *profile_button;
+#endif
GtkWidget *quality_slider;
gboolean run = FALSE;
diff --git a/plug-ins/metadata/metadata-editor.c b/plug-ins/metadata/metadata-editor.c
index b6c0cb0e1c..940336f286 100644
--- a/plug-ins/metadata/metadata-editor.c
+++ b/plug-ins/metadata/metadata-editor.c
@@ -611,7 +611,7 @@ remove_substring (const gchar *string,
gchar *p = strstr (string, substring);
if (p)
{
- strcpy (p, p + strlen (substring));
+ strcpy (p, p + (gint) strlen (substring));
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]