[dia] [warningectomy] one more cast to xmlChar*
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [warningectomy] one more cast to xmlChar*
- Date: Sun, 16 Nov 2014 12:41:13 +0000 (UTC)
commit ee21b1b283dac59649689f56baaab121b5180bab
Author: Hans Breuer <hans breuer org>
Date: Sun Nov 16 12:34:24 2014 +0100
[warningectomy] one more cast to xmlChar*
render_svg.c:614:62: warning: passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const
unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
g_return_if_fail (node != NULL && xmlStrcmp (node->name, "image") == 0);
^~~~~~~
plug-ins/svg/render_svg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/svg/render_svg.c b/plug-ins/svg/render_svg.c
index 519f760..1af057a 100644
--- a/plug-ins/svg/render_svg.c
+++ b/plug-ins/svg/render_svg.c
@@ -611,7 +611,7 @@ draw_rotated_image (DiaRenderer *self,
gchar *trans;
Point pos = { point->x + width/2, point->y + height/2 }; /* center */
- g_return_if_fail (node != NULL && xmlStrcmp (node->name, "image") == 0);
+ g_return_if_fail (node != NULL && xmlStrcmp (node->name, (const xmlChar *)"image") == 0);
g_ascii_formatd (d_buf, sizeof(d_buf), "%g", angle);
dia_svg_dtostr(x_buf0, pos.x);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]