From ee34dfa57e5d831f4cec24f1c34f53b2aebfa16c Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Mon, 20 Feb 2006 07:25:34 +0000 Subject: [PATCH] added a cast to get rid of a compiler warning. 2006-02-20 Sven Neumann * libgimp/gimpplugin.c (gimp_plugin_icon_register): added a cast to get rid of a compiler warning. --- ChangeLog | 5 +++++ libgimp/gimpplugin.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 57f3355fc8..75a0130e2e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-02-20 Sven Neumann + + * libgimp/gimpplugin.c (gimp_plugin_icon_register): added a cast to + get rid of a compiler warning. + 2006-02-19 Tor Lillqvist * configure.in: Don't think we have Mac OS X TWAIN if on Win32. diff --git a/libgimp/gimpplugin.c b/libgimp/gimpplugin.c index 8edf0deea0..94613654de 100644 --- a/libgimp/gimpplugin.c +++ b/libgimp/gimpplugin.c @@ -39,7 +39,7 @@ gimp_plugin_icon_register (const gchar *procedure_name, { case GIMP_ICON_TYPE_STOCK_ID: case GIMP_ICON_TYPE_IMAGE_FILE: - icon_data_length = strlen (icon_data) + 1; + icon_data_length = strlen ((const gchar *) icon_data) + 1; break; case GIMP_ICON_TYPE_INLINE_PIXBUF: